|
|
@ -65,9 +65,6 @@ public class CensServiceImpl implements CensService { |
|
|
|
if(StringUtil.isEmpty(param.getEndTime())){ |
|
|
|
if(StringUtil.isEmpty(param.getEndTime())){ |
|
|
|
param.setStartTime(DateUtil.format(new Date(),DateUtil.PATTERN_DATETIME)); |
|
|
|
param.setStartTime(DateUtil.format(new Date(),DateUtil.PATTERN_DATETIME)); |
|
|
|
} |
|
|
|
} |
|
|
|
if(!StringUtil.isEmpty(param.getState()) && param.getState().equals(1)){ |
|
|
|
|
|
|
|
param.setFlowTaskName("结束"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取权限区域机构
|
|
|
|
// 获取权限区域机构
|
|
|
|
List<Dept> depts; |
|
|
|
List<Dept> depts; |
|
|
@ -87,8 +84,12 @@ public class CensServiceImpl implements CensService { |
|
|
|
|
|
|
|
|
|
|
|
// 操作票查询
|
|
|
|
// 操作票查询
|
|
|
|
QueryWrapper wrapper = new QueryWrapper(); |
|
|
|
QueryWrapper wrapper = new QueryWrapper(); |
|
|
|
if(!StringUtil.isEmpty(param.getFlowTaskName())){ |
|
|
|
if(!StringUtil.isEmpty(param.getState())){ |
|
|
|
wrapper.eq("FLOW_TASK_NAME",param.getFlowTaskName()); |
|
|
|
if(param.getState().equals(1)){ |
|
|
|
|
|
|
|
wrapper.eq("FLOW_TASK_NAME","结束"); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
wrapper.ne("FLOW_TASK_NAME","结束"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(!StringUtil.isEmpty(param.getStartTime())){ |
|
|
|
if(!StringUtil.isEmpty(param.getStartTime())){ |
|
|
|
wrapper.ge("CREATE_TIME",param.getStartTime()); |
|
|
|
wrapper.ge("CREATE_TIME",param.getStartTime()); |
|
|
@ -104,7 +105,6 @@ public class CensServiceImpl implements CensService { |
|
|
|
List<StandardTicketInfoEntity> operates = operateTicketService.list(wrapper); |
|
|
|
List<StandardTicketInfoEntity> operates = operateTicketService.list(wrapper); |
|
|
|
// 工作票查询
|
|
|
|
// 工作票查询
|
|
|
|
List<WorkTicketInfoEntity> works = workTicketInfoService.list(wrapper); |
|
|
|
List<WorkTicketInfoEntity> works = workTicketInfoService.list(wrapper); |
|
|
|
// 工作任务单
|
|
|
|
|
|
|
|
return depts.stream().map(dept->{ |
|
|
|
return depts.stream().map(dept->{ |
|
|
|
CensVo cens = new CensVo(); |
|
|
|
CensVo cens = new CensVo(); |
|
|
|
cens.setDeptId(dept.getId()); |
|
|
|
cens.setDeptId(dept.getId()); |
|
|
@ -119,7 +119,6 @@ public class CensServiceImpl implements CensService { |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
cens.setWorkCount(works.stream().filter(work->work.getCreateDept().equals(dept.getId())).count()); |
|
|
|
cens.setWorkCount(works.stream().filter(work->work.getCreateDept().equals(dept.getId())).count()); |
|
|
|
} |
|
|
|
} |
|
|
|
cens.setWorkTaskCount((long)new Random().nextInt(10)); |
|
|
|
|
|
|
|
return cens; |
|
|
|
return cens; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
@ -153,9 +152,6 @@ public class CensServiceImpl implements CensService { |
|
|
|
param.setEndTime(param.getYear() + "-12-31 23:59:59"); |
|
|
|
param.setEndTime(param.getYear() + "-12-31 23:59:59"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(!StringUtil.isEmpty(param.getState()) && param.getState().equals(1)){ |
|
|
|
|
|
|
|
param.setFlowTaskName("结束"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
List<Dept> depts; |
|
|
|
List<Dept> depts; |
|
|
|
if(ObjectUtil.isEmpty(param.getDeptId())){ |
|
|
|
if(ObjectUtil.isEmpty(param.getDeptId())){ |
|
|
|
// 获取权限区域机构
|
|
|
|
// 获取权限区域机构
|
|
|
@ -173,8 +169,12 @@ public class CensServiceImpl implements CensService { |
|
|
|
|
|
|
|
|
|
|
|
// 操作票查询
|
|
|
|
// 操作票查询
|
|
|
|
QueryWrapper wrapper = new QueryWrapper(); |
|
|
|
QueryWrapper wrapper = new QueryWrapper(); |
|
|
|
if(!StringUtil.isEmpty(param.getFlowTaskName())){ |
|
|
|
if(!StringUtil.isEmpty(param.getState())){ |
|
|
|
wrapper.eq("FLOW_TASK_NAME",param.getFlowTaskName()); |
|
|
|
if(param.getState().equals(1)){ |
|
|
|
|
|
|
|
wrapper.eq("FLOW_TASK_NAME","结束"); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
wrapper.ne("FLOW_TASK_NAME","结束"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(!StringUtil.isEmpty(param.getStartTime())){ |
|
|
|
if(!StringUtil.isEmpty(param.getStartTime())){ |
|
|
|
wrapper.ge("CREATE_TIME",param.getStartTime()); |
|
|
|
wrapper.ge("CREATE_TIME",param.getStartTime()); |
|
|
|