|
|
|
@ -134,36 +134,51 @@ public class DatavServiceImpl implements DatavService { |
|
|
|
Set<String> allDepartIds = departDto.getAllDepartIds(); |
|
|
|
Set<String> allDepartIds = departDto.getAllDepartIds(); |
|
|
|
GlobalMapIconVo globalMapIconVo = GlobalMapIconVo.of(departId, departDto.getParentName()); |
|
|
|
GlobalMapIconVo globalMapIconVo = GlobalMapIconVo.of(departId, departDto.getParentName()); |
|
|
|
List<Date> dates = Arrays.asList(request.getBeginTime(), request.getEndTime()); |
|
|
|
List<Date> dates = Arrays.asList(request.getBeginTime(), request.getEndTime()); |
|
|
|
|
|
|
|
|
|
|
|
NegativeQueryParam negativeQueryParam = new NegativeQueryParam(); |
|
|
|
|
|
|
|
negativeQueryParam.setCrtTime(dates); |
|
|
|
|
|
|
|
negativeQueryParam.setInvolveDepartIds(allDepartIds); |
|
|
|
|
|
|
|
List<Negative> negativeList = negativeResourceService.query(negativeQueryParam); |
|
|
|
|
|
|
|
// 现场督查
|
|
|
|
// 现场督查
|
|
|
|
long supervisionProCount = negativeList.stream().filter(one -> ProblemSourcesEnum.GROUP_13.contains(one.getProblemSourcesCode())).count(); |
|
|
|
NegativeQueryParam group13Param = new NegativeQueryParam(); |
|
|
|
|
|
|
|
group13Param.setCrtTime(dates); |
|
|
|
|
|
|
|
group13Param.setInvolveDepartIds(allDepartIds); |
|
|
|
|
|
|
|
group13Param.setProblemSourcesCode(ProblemSourcesEnum.GROUP_13); |
|
|
|
|
|
|
|
long supervisionProCount = negativeResourceService.count(group13Param); |
|
|
|
|
|
|
|
|
|
|
|
// 数字督察
|
|
|
|
// 数字督察
|
|
|
|
long numSupervisionProCount = negativeList.stream().filter(one -> ProblemSourcesEnum.GROUP_14_15_16.contains(one.getProblemSourcesCode())).count(); |
|
|
|
NegativeQueryParam group14To16Param = new NegativeQueryParam(); |
|
|
|
|
|
|
|
group14To16Param.setCrtTime(dates); |
|
|
|
|
|
|
|
group14To16Param.setInvolveDepartIds(allDepartIds); |
|
|
|
|
|
|
|
group14To16Param.setProblemSourcesCode(ProblemSourcesEnum.GROUP_14_15_16); |
|
|
|
|
|
|
|
long numSupervisionProCount = negativeResourceService.count(group14To16Param); |
|
|
|
|
|
|
|
|
|
|
|
// 案件核查
|
|
|
|
// 案件核查
|
|
|
|
long caseVerificationProCount = negativeList.stream().filter(one -> ProblemSourcesEnum.GROUP_17_18_19_20.contains(one.getProblemSourcesCode())).count(); |
|
|
|
NegativeQueryParam group17To20Param = new NegativeQueryParam(); |
|
|
|
// 12337
|
|
|
|
group17To20Param.setCrtTime(dates); |
|
|
|
long XF12337count = negativeList.stream().filter(one -> ProblemSourcesEnum.XF12337.getValue().equals(one.getProblemSourcesCode())).count(); |
|
|
|
group17To20Param.setInvolveDepartIds(allDepartIds); |
|
|
|
|
|
|
|
group17To20Param.setProblemSourcesCode(ProblemSourcesEnum.GROUP_17_18_19_20); |
|
|
|
|
|
|
|
long caseVerificationProCount = negativeResourceService.count(group17To20Param); |
|
|
|
|
|
|
|
|
|
|
|
DataPetitionComplaintQueryParam dataPetitionComplaintQueryParam = new DataPetitionComplaintQueryParam(); |
|
|
|
// 12337
|
|
|
|
dataPetitionComplaintQueryParam.setCreateTime(dates); |
|
|
|
NegativeQueryParam xf12337Param = new NegativeQueryParam(); |
|
|
|
dataPetitionComplaintQueryParam.setSecondDepartIds(Collections.singleton(departDto.getParentId())); |
|
|
|
xf12337Param.setCrtTime(dates); |
|
|
|
List<DataPetitionComplaint> dataPetitionComplaints = dataPetitionComplaintResourceService.query(dataPetitionComplaintQueryParam); |
|
|
|
xf12337Param.setInvolveDepartIds(allDepartIds); |
|
|
|
|
|
|
|
xf12337Param.setProblemSourcesCode(Collections.singletonList(ProblemSourcesEnum.XF12337.getValue())); |
|
|
|
|
|
|
|
long xf12337Count = negativeResourceService.count(xf12337Param); |
|
|
|
// 国家信访
|
|
|
|
// 国家信访
|
|
|
|
long countryMail = dataPetitionComplaints.stream().filter(one -> "22".equals(one.getProblemSourcesCode())).count(); |
|
|
|
DataPetitionComplaintQueryParam countryParam = new DataPetitionComplaintQueryParam(); |
|
|
|
|
|
|
|
countryParam.setCreateTime(dates); |
|
|
|
|
|
|
|
countryParam.setSecondDepartIds(Collections.singleton(departDto.getParentId())); |
|
|
|
|
|
|
|
countryParam.setProblemSourcesCode(ProblemSourcesEnum.GJXFPT.getValue()); |
|
|
|
|
|
|
|
long countryMail = dataPetitionComplaintResourceService.count(countryParam); |
|
|
|
// 公安部门信访
|
|
|
|
// 公安部门信访
|
|
|
|
long policeMail = dataPetitionComplaints.stream().filter(one -> "21".equals(one.getProblemSourcesCode())).count(); |
|
|
|
DataPetitionComplaintQueryParam policeParam = new DataPetitionComplaintQueryParam(); |
|
|
|
|
|
|
|
policeParam.setCreateTime(dates); |
|
|
|
|
|
|
|
policeParam.setSecondDepartIds(Collections.singleton(departDto.getParentId())); |
|
|
|
|
|
|
|
policeParam.setProblemSourcesCode(ProblemSourcesEnum.GABXF.getValue()); |
|
|
|
|
|
|
|
long policeMail = dataPetitionComplaintResourceService.count(policeParam); |
|
|
|
// 审计项目数
|
|
|
|
// 审计项目数
|
|
|
|
ReportProjectQueryParam reportProjectQueryParam = new ReportProjectQueryParam(); |
|
|
|
ReportProjectQueryParam reportProjectQueryParam = new ReportProjectQueryParam(); |
|
|
|
reportProjectQueryParam.setArchivingStart(request.getBeginTime()); |
|
|
|
reportProjectQueryParam.setArchivingStart(request.getBeginTime()); |
|
|
|
reportProjectQueryParam.setArchivingEnd(request.getEndTime()); |
|
|
|
reportProjectQueryParam.setArchivingEnd(request.getEndTime()); |
|
|
|
reportProjectQueryParam.setAuditUnitIds(allDepartIds); |
|
|
|
reportProjectQueryParam.setAuditUnitIds(allDepartIds); |
|
|
|
reportProjectQueryParam.setDeleteFlag(DeleteStatusEnum.NO.getCode()); |
|
|
|
long reportProjectCount = reportProjectResourceService.count(reportProjectQueryParam); |
|
|
|
List<ReportProject> reportProjectList = reportProjectResourceService.query(reportProjectQueryParam); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 局长信箱
|
|
|
|
// 局长信箱
|
|
|
|
SupExternalDepartQueryParam supExternalDepartQueryParam = new SupExternalDepartQueryParam(); |
|
|
|
SupExternalDepartQueryParam supExternalDepartQueryParam = new SupExternalDepartQueryParam(); |
|
|
|
supExternalDepartQueryParam.setInternalIds(Collections.singleton(departDto.getParentId())); |
|
|
|
supExternalDepartQueryParam.setInternalIds(Collections.singleton(departDto.getParentId())); |
|
|
|
@ -177,14 +192,15 @@ public class DatavServiceImpl implements DatavService { |
|
|
|
|
|
|
|
|
|
|
|
MailQueryParam mailQueryParam = new MailQueryParam(); |
|
|
|
MailQueryParam mailQueryParam = new MailQueryParam(); |
|
|
|
mailQueryParam.setSecondDeptId(depart.getExternalId()); |
|
|
|
mailQueryParam.setSecondDeptId(depart.getExternalId()); |
|
|
|
List<Mail> mailList = mailResourceService.query(mailQueryParam); |
|
|
|
mailQueryParam.setCreateTime(dates); |
|
|
|
|
|
|
|
long mailCount = mailResourceService.count(mailQueryParam); |
|
|
|
|
|
|
|
|
|
|
|
globalMapIconVo.setSupervisionPro(supervisionProCount); |
|
|
|
globalMapIconVo.setSupervisionPro(supervisionProCount); |
|
|
|
globalMapIconVo.setNumSupervisionPro(numSupervisionProCount); |
|
|
|
globalMapIconVo.setNumSupervisionPro(numSupervisionProCount); |
|
|
|
globalMapIconVo.setCaseVerificationPro(caseVerificationProCount); |
|
|
|
globalMapIconVo.setCaseVerificationPro(caseVerificationProCount); |
|
|
|
globalMapIconVo.setComplaintPro(XF12337count+countryMail+policeMail); |
|
|
|
globalMapIconVo.setComplaintPro(xf12337Count+countryMail+policeMail); |
|
|
|
globalMapIconVo.setAuditPro((long) reportProjectList.size()); |
|
|
|
globalMapIconVo.setAuditPro(reportProjectCount); |
|
|
|
globalMapIconVo.setMailboxNumber((long) mailList.size()); |
|
|
|
globalMapIconVo.setMailboxNumber(mailCount); |
|
|
|
globalMapIconVo.calcTotal(); |
|
|
|
globalMapIconVo.calcTotal(); |
|
|
|
globalMapIconVoList.add(globalMapIconVo); |
|
|
|
globalMapIconVoList.add(globalMapIconVo); |
|
|
|
} |
|
|
|
} |
|
|
|
|