Commit b4479a06 authored by 廖旭伟's avatar 廖旭伟

考勤人员花名册接口功能调整

parent 93ceefbe
...@@ -142,7 +142,7 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity ...@@ -142,7 +142,7 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity
DeptEntity deptEntity = iterator.next(); DeptEntity deptEntity = iterator.next();
StaffQuery staffQuery = new StaffQuery(); StaffQuery staffQuery = new StaffQuery();
staffQuery.setDeptId(deptEntity.getId()); staffQuery.setDeptId(deptEntity.getId());
staffQuery.setStatusNotList(Arrays.asList(StaffSatusEnum.离职.getValue())); staffQuery.setStatusList(Arrays.asList(StaffSatusEnum.正式.getValue(), StaffSatusEnum.试用.getValue()));
List<StaffEntity> staffEntities = staffService.find(staffQuery); List<StaffEntity> staffEntities = staffService.find(staffQuery);
List<Map<String, Object>> personList = new ArrayList<>(); List<Map<String, Object>> personList = new ArrayList<>();
staffEntities.forEach(item -> { staffEntities.forEach(item -> {
...@@ -155,7 +155,7 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity ...@@ -155,7 +155,7 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity
deptEntity.setPersonList(personList); deptEntity.setPersonList(personList);
} }
//获取父节点 //获取父节点
List<DeptEntity> returnList = list.stream().filter(t -> t.getParentId() == 0 || t.getParentId() == -1).map( List<DeptEntity> returnList = list.stream().filter(t -> t.getParentId() == 0).map(
m -> { m -> {
m.setChildren(getChildren(m, list)); m.setChildren(getChildren(m, list));
......
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