Commit cc0b2a56 authored by 赵啸非's avatar 赵啸非

修改考勤汇总

parent 7b4ded1d
...@@ -116,7 +116,7 @@ public class TestController { ...@@ -116,7 +116,7 @@ public class TestController {
} }
private void updateDeptPersonNum(DeptEntity deptEntity) { private void updateDeptPersonNum(DeptEntity deptEntity) {
if(!ObjectUtils.isEmpty(deptEntity.getParentId())){ if(!ObjectUtils.isEmpty(deptEntity)&&!ObjectUtils.isEmpty(deptEntity.getParentId())){
int sum = deptService.find(new DeptQuery().parentId(deptEntity.getId())).stream().mapToInt(i -> i.getPersonNum()).sum(); int sum = deptService.find(new DeptQuery().parentId(deptEntity.getId())).stream().mapToInt(i -> i.getPersonNum()).sum();
DeptEntity parentDept = deptService.get(deptEntity.getParentId()); DeptEntity parentDept = deptService.get(deptEntity.getParentId());
if(ObjectUtils.isEmpty(parentDept)){ if(ObjectUtils.isEmpty(parentDept)){
......
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