Commit 51003bbd authored by 赵啸非's avatar 赵啸非

修改根据业务查询部门逻辑

parent a1b7f87c
...@@ -181,9 +181,9 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE ...@@ -181,9 +181,9 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
* @return * @return
*/ */
@Override @Override
public Rest<Map<Long, List<DeptVo>>> getDeptListByBusiness(DeptQuery deptQuery, Context context) { public Rest<Map<String, List<DeptVo>>> getDeptListByBusiness(DeptQuery deptQuery, Context context) {
List<DeptVo> deptListByBusiness = this.dao.getDeptListByBusiness(deptQuery); List<DeptVo> deptListByBusiness = this.dao.getDeptListByBusiness(deptQuery);
Map<Long, List<DeptVo>> collect = deptListByBusiness.parallelStream().collect(Collectors.groupingBy(x -> x.getSiteBusinessId())); Map<String, List<DeptVo>> collect = deptListByBusiness.parallelStream().collect(Collectors.groupingBy(x -> x.getSiteBusinessId().toString()));
return Rest.ok(collect); return Rest.ok(collect);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment