Commit a895b6a1 by qwmqiuwenmin

fix

parent f08c2a3b
......@@ -72,7 +72,7 @@ public class DepartmentContoller extends WebBaseController{
String chainId = departmentDTO.getChainId();
List<DepartmentDTO> sonList = departmentApiService.listByChainId(chainId,wxEnterpriseId);
int staffCount = 0;
for (DepartmentDTO departmentDTO2 : result) {
for (DepartmentDTO departmentDTO2 : sonList) {
staffCount += staffApiService.countByDepartmentId(departmentDTO2.getDepartmentId());
}
departmentDTO.setStaffCount(staffCount);
......
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