Commit 42bfbb35 authored by 赵啸非's avatar 赵啸非

修改考勤汇总

parent 00cc35d9
...@@ -98,8 +98,11 @@ public class TestController { ...@@ -98,8 +98,11 @@ public class TestController {
Long deptId = item.getKey(); Long deptId = item.getKey();
Long count = item.getValue(); Long count = item.getValue();
DeptEntity deptEntity = deptService.get(deptId); DeptEntity deptEntity = deptService.get(deptId);
deptEntity.setPersonNum(count.intValue()); if(!ObjectUtils.isEmpty(deptEntity)){
deptService.update(deptEntity); deptEntity.setPersonNum(count.intValue());
deptService.update(deptEntity);
}
}); });
//更新父部门的人数归集 //更新父部门的人数归集
......
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