Commit 2476ffe5 authored by 赵啸非's avatar 赵啸非

修改考勤汇总

parent e4af4d5e
...@@ -116,7 +116,7 @@ public class TestController { ...@@ -116,7 +116,7 @@ public class TestController {
if (deptId == -1) continue; if (deptId == -1) continue;
DeptEntity deptEntity = deptService.get(deptId); DeptEntity deptEntity = deptService.get(deptId);
if (!ObjectUtils.isEmpty(deptEntity) && !ObjectUtils.isEmpty(deptEntity.getParentId())) { if (!ObjectUtils.isEmpty(deptEntity) && !ObjectUtils.isEmpty(deptEntity.getParentId())) {
int sum = deptService.find(new DeptQuery().parentId(deptEntity.getId())).stream().map(i -> i.getPersonNum()).reduce(0, Integer::sum);; int sum = deptService.find(new DeptQuery().id(deptEntity.getParentId())).stream().map(i -> i.getPersonNum()).reduce(0, Integer::sum);;
DeptEntity parentDept = deptService.get(deptEntity.getParentId()); DeptEntity parentDept = deptService.get(deptEntity.getParentId());
log.info("dept:{},sum:{}", parentDept.getDeptName(), sum); log.info("dept:{},sum:{}", parentDept.getDeptName(), sum);
......
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