Commit 46eea11e authored by 廖旭伟's avatar 廖旭伟

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

parent 2e378b0c
...@@ -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).map( List<DeptEntity> returnList = list.stream().filter(t -> t.getParentId() == 0 || t.getParentId() == -1).map(
m -> { m -> {
m.setChildren(getChildren(m, list)); m.setChildren(getChildren(m, list));
......
...@@ -34,4 +34,6 @@ public class StaffVo extends BaseEntityLong { ...@@ -34,4 +34,6 @@ public class StaffVo extends BaseEntityLong {
private List <Long> deptIdList; private List <Long> deptIdList;
/** 员工状态(1.正式,2.试用,3.离职)列表 */
private List <Integer> statusList;
} }
\ No newline at end of file
...@@ -359,6 +359,9 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta ...@@ -359,6 +359,9 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
params.setDeptIdList(deptIdList); params.setDeptIdList(deptIdList);
} }
} }
if(params.getStatus()==null && CollectionUtils.isEmpty(params.getStatusList())){
params.setStatusList(Arrays.asList(StaffSatusEnum.正式.getValue(), StaffSatusEnum.试用.getValue()));
}
return params; return params;
} }
......
...@@ -96,9 +96,9 @@ public class StaffController extends BaseCRUDJsonBodyMappingController<StaffServ ...@@ -96,9 +96,9 @@ public class StaffController extends BaseCRUDJsonBodyMappingController<StaffServ
@Override @Override
protected int doListAfter(StaffEntity query, Map<String, Object> model, Context context) throws AppException { protected int doListAfter(StaffEntity query, Map<String, Object> model, Context context) throws AppException {
//todo 员工信息统计--员工关系统计 //todo 员工信息统计--员工关系统计
StaffInfoVo staffInfoVo = this.service.queryAll(context); // StaffInfoVo staffInfoVo = this.service.queryAll(context);
staffInfoVo.setRefreshDate(new Date()); // staffInfoVo.setRefreshDate(new Date());
model.put("staff", staffInfoVo); // model.put("staff", staffInfoVo);
return super.doListAfter(query, model, context); return super.doListAfter(query, model, context);
} }
......
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