|
|
|
@ -64,21 +64,24 @@ public class CensServiceImpl implements CensService {
|
|
|
|
|
return new ArrayList<>(); |
|
|
|
|
} |
|
|
|
|
// 操作票查询
|
|
|
|
|
LambdaQueryWrapper operateWrapper = Wrappers.<StandardTicketInfoEntity>lambdaQuery() |
|
|
|
|
.between(StandardTicketInfoEntity::getCreateTime,param.getStartTime(),param.getEndTime()) |
|
|
|
|
.in(StandardTicketInfoEntity::getCreateDept,depts.stream().map(Dept::getId).collect(Collectors.toList())); |
|
|
|
|
LambdaQueryWrapper wrapper = new LambdaQueryWrapper(); |
|
|
|
|
if(!StringUtil.isEmpty(param.getFlowTaskName())){ |
|
|
|
|
operateWrapper.eq("FLOW_TASK_NAME",param.getFlowTaskName()); |
|
|
|
|
wrapper.eq("FLOW_TASK_NAME",param.getFlowTaskName()); |
|
|
|
|
} |
|
|
|
|
List<StandardTicketInfoEntity> operates = operateTicketService.list(operateWrapper); |
|
|
|
|
// 工作票查询
|
|
|
|
|
LambdaQueryWrapper workWrapper = Wrappers.<StandardTicketInfoEntity>lambdaQuery() |
|
|
|
|
.between(StandardTicketInfoEntity::getCreateTime,param.getStartTime(),param.getEndTime()) |
|
|
|
|
.in(StandardTicketInfoEntity::getCreateDept,depts.stream().map(Dept::getId).collect(Collectors.toList())); |
|
|
|
|
if(!StringUtil.isEmpty(param.getFlowTaskName())){ |
|
|
|
|
workWrapper.eq("FLOW_TASK_NAME",param.getFlowTaskName()); |
|
|
|
|
if(!StringUtil.isEmpty(param.getStartTime())){ |
|
|
|
|
wrapper.ge("CREATE_TIME",param.getStartTime()); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.isEmpty(param.getEndTime())){ |
|
|
|
|
wrapper.le("CREATE_TIME",param.getEndTime()); |
|
|
|
|
} |
|
|
|
|
List<WorkTicketInfoEntity> works = workTicketInfoService.list(workWrapper); |
|
|
|
|
if(!StringUtil.isEmpty(param.getDeptId())){ |
|
|
|
|
wrapper.eq("CREATE_DEPT",param.getDeptId()); |
|
|
|
|
}else{ |
|
|
|
|
wrapper.in("CREATE_DEPT",depts.stream().map(Dept::getId).collect(Collectors.toList())); |
|
|
|
|
} |
|
|
|
|
List<StandardTicketInfoEntity> operates = operateTicketService.list(wrapper); |
|
|
|
|
// 工作票查询
|
|
|
|
|
List<WorkTicketInfoEntity> works = workTicketInfoService.list(wrapper); |
|
|
|
|
// 工作任务单
|
|
|
|
|
return depts.stream().map(dept->{ |
|
|
|
|
CensVo cens = new CensVo(); |
|
|
|
@ -139,21 +142,24 @@ public class CensServiceImpl implements CensService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 操作票查询
|
|
|
|
|
LambdaQueryWrapper operateWrapper = Wrappers.<StandardTicketInfoEntity>lambdaQuery() |
|
|
|
|
.between(StandardTicketInfoEntity::getCreateTime,param.getStartTime(),param.getEndTime()) |
|
|
|
|
.in(StandardTicketInfoEntity::getCreateDept,depts.stream().map(Dept::getId).collect(Collectors.toList())); |
|
|
|
|
LambdaQueryWrapper wrapper = new LambdaQueryWrapper(); |
|
|
|
|
if(!StringUtil.isEmpty(param.getFlowTaskName())){ |
|
|
|
|
operateWrapper.eq("FLOW_TASK_NAME",param.getFlowTaskName()); |
|
|
|
|
wrapper.eq("FLOW_TASK_NAME",param.getFlowTaskName()); |
|
|
|
|
} |
|
|
|
|
List<StandardTicketInfoEntity> operates = operateTicketService.list(operateWrapper); |
|
|
|
|
// 工作票查询
|
|
|
|
|
LambdaQueryWrapper workWrapper = Wrappers.<StandardTicketInfoEntity>lambdaQuery() |
|
|
|
|
.between(StandardTicketInfoEntity::getCreateTime,param.getStartTime(),param.getEndTime()) |
|
|
|
|
.in(StandardTicketInfoEntity::getCreateDept,depts.stream().map(Dept::getId).collect(Collectors.toList())); |
|
|
|
|
if(!StringUtil.isEmpty(param.getFlowTaskName())){ |
|
|
|
|
workWrapper.eq("FLOW_TASK_NAME",param.getFlowTaskName()); |
|
|
|
|
if(!StringUtil.isEmpty(param.getStartTime())){ |
|
|
|
|
wrapper.ge("CREATE_TIME",param.getStartTime()); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.isEmpty(param.getEndTime())){ |
|
|
|
|
wrapper.le("CREATE_TIME",param.getEndTime()); |
|
|
|
|
} |
|
|
|
|
List<WorkTicketInfoEntity> works = workTicketInfoService.list(workWrapper); |
|
|
|
|
if(!StringUtil.isEmpty(param.getDeptId())){ |
|
|
|
|
wrapper.eq("CREATE_DEPT",param.getDeptId()); |
|
|
|
|
}else{ |
|
|
|
|
wrapper.in("CREATE_DEPT",depts.stream().map(Dept::getId).collect(Collectors.toList())); |
|
|
|
|
} |
|
|
|
|
List<StandardTicketInfoEntity> operates = operateTicketService.list(wrapper); |
|
|
|
|
// 工作票查询
|
|
|
|
|
List<WorkTicketInfoEntity> works = workTicketInfoService.list(wrapper); |
|
|
|
|
return depts.stream().map(dept -> { |
|
|
|
|
CensYearVo censYear = new CensYearVo(); |
|
|
|
|
censYear.setDeptId(dept.getId()); |
|
|
|
|