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

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

parent 2e378b0c
......@@ -155,7 +155,7 @@ public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity
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.setChildren(getChildren(m, list));
......
......@@ -34,4 +34,6 @@ public class StaffVo extends BaseEntityLong {
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
params.setDeptIdList(deptIdList);
}
}
if(params.getStatus()==null && CollectionUtils.isEmpty(params.getStatusList())){
params.setStatusList(Arrays.asList(StaffSatusEnum.正式.getValue(), StaffSatusEnum.试用.getValue()));
}
return params;
}
......
......@@ -96,9 +96,9 @@ public class StaffController extends BaseCRUDJsonBodyMappingController<StaffServ
@Override
protected int doListAfter(StaffEntity query, Map<String, Object> model, Context context) throws AppException {
//todo 员工信息统计--员工关系统计
StaffInfoVo staffInfoVo = this.service.queryAll(context);
staffInfoVo.setRefreshDate(new Date());
model.put("staff", staffInfoVo);
// StaffInfoVo staffInfoVo = this.service.queryAll(context);
// staffInfoVo.setRefreshDate(new Date());
// model.put("staff", staffInfoVo);
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