|
|
|
@ -233,14 +233,14 @@ public class SubDatavServiceImpl implements SubDatavService { |
|
|
|
long mailCount = mailMapper.selectCount(mailQueryWrapper); |
|
|
|
long mailCount = mailMapper.selectCount(mailQueryWrapper); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 12337
|
|
|
|
// 12337 - 已隐藏
|
|
|
|
QueryWrapper<DataPetition12337> queryWrapper12337 = new QueryWrapper<>(); |
|
|
|
// QueryWrapper<DataPetition12337> queryWrapper12337 = new QueryWrapper<>();
|
|
|
|
queryWrapper12337.between("discover_time", request.getBeginTime(), request.getEndTime()); |
|
|
|
// queryWrapper12337.between("discover_time", request.getBeginTime(), request.getEndTime());
|
|
|
|
queryWrapper12337.and(wrapper -> wrapper |
|
|
|
// queryWrapper12337.and(wrapper -> wrapper
|
|
|
|
.in("third_depart_id", allDepartIds) |
|
|
|
// .in("third_depart_id", allDepartIds)
|
|
|
|
.or() |
|
|
|
// .or()
|
|
|
|
.in("second_depart_id", allDepartIds)); |
|
|
|
// .in("second_depart_id", allDepartIds));
|
|
|
|
long xf12337Count = dataPetition12337Mapper.selectCount(queryWrapper12337); |
|
|
|
// long xf12337Count = dataPetition12337Mapper.selectCount(queryWrapper12337);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 国家信访
|
|
|
|
// 国家信访
|
|
|
|
@ -275,7 +275,7 @@ public class SubDatavServiceImpl implements SubDatavService { |
|
|
|
overview.setNumSupervisionPro(szdcCount); |
|
|
|
overview.setNumSupervisionPro(szdcCount); |
|
|
|
overview.setCaseVerificationPro(ajhcCount); |
|
|
|
overview.setCaseVerificationPro(ajhcCount); |
|
|
|
overview.setMailboxNumber(mailCount); |
|
|
|
overview.setMailboxNumber(mailCount); |
|
|
|
overview.setComplaintPro(xf12337Count + gjxfCount + gabxfCount); |
|
|
|
overview.setComplaintPro(gjxfCount + gabxfCount); // 隐藏12337: xf12337Count +
|
|
|
|
overview.setAuditPro(sjxmCount); |
|
|
|
overview.setAuditPro(sjxmCount); |
|
|
|
overview.calcTotal(); |
|
|
|
overview.calcTotal(); |
|
|
|
JSONObject data = new JSONObject().fluentPut("overview", overview); |
|
|
|
JSONObject data = new JSONObject().fluentPut("overview", overview); |
|
|
|
@ -319,12 +319,12 @@ public class SubDatavServiceImpl implements SubDatavService { |
|
|
|
List<Negative> jbNegatvieList = negatives.stream().filter(one -> ldjbCode.contains(one.getProblemSourcesCode())).toList(); |
|
|
|
List<Negative> jbNegatvieList = negatives.stream().filter(one -> ldjbCode.contains(one.getProblemSourcesCode())).toList(); |
|
|
|
long caseVerificationProCount = dataCaseVerifs + jbNegatvieList.size(); |
|
|
|
long caseVerificationProCount = dataCaseVerifs + jbNegatvieList.size(); |
|
|
|
|
|
|
|
|
|
|
|
// 12337
|
|
|
|
// 12337 - 已隐藏
|
|
|
|
NegativeQueryParam xf12337Param = new NegativeQueryParam(); |
|
|
|
// NegativeQueryParam xf12337Param = new NegativeQueryParam();
|
|
|
|
xf12337Param.setCrtTime(dates); |
|
|
|
// xf12337Param.setCrtTime(dates);
|
|
|
|
xf12337Param.setInvolveDepartIds(Set.of(childDepartId)); |
|
|
|
// xf12337Param.setInvolveDepartIds(Set.of(childDepartId));
|
|
|
|
xf12337Param.setProblemSourcesCode(Collections.singletonList(ProblemSourcesEnum.XF12337.getValue())); |
|
|
|
// xf12337Param.setProblemSourcesCode(Collections.singletonList(ProblemSourcesEnum.XF12337.getValue()));
|
|
|
|
long xf12337Count = negativeResourceService.count(xf12337Param); |
|
|
|
// long xf12337Count = negativeResourceService.count(xf12337Param);
|
|
|
|
|
|
|
|
|
|
|
|
// 国家信访
|
|
|
|
// 国家信访
|
|
|
|
DataPetitionComplaintQueryParam countryParam = new DataPetitionComplaintQueryParam(); |
|
|
|
DataPetitionComplaintQueryParam countryParam = new DataPetitionComplaintQueryParam(); |
|
|
|
@ -372,7 +372,8 @@ public class SubDatavServiceImpl implements SubDatavService { |
|
|
|
globalMapIconVo.setSupervisionPro(supervisionProCount); |
|
|
|
globalMapIconVo.setSupervisionPro(supervisionProCount); |
|
|
|
globalMapIconVo.setNumSupervisionPro(numSupervisionProCount); |
|
|
|
globalMapIconVo.setNumSupervisionPro(numSupervisionProCount); |
|
|
|
globalMapIconVo.setCaseVerificationPro(caseVerificationProCount); |
|
|
|
globalMapIconVo.setCaseVerificationPro(caseVerificationProCount); |
|
|
|
globalMapIconVo.setComplaintPro(xf12337Count + countryMail + policeMail); |
|
|
|
// 隐藏12337: xf12337Count + countryMail + policeMail
|
|
|
|
|
|
|
|
globalMapIconVo.setComplaintPro(countryMail + policeMail); |
|
|
|
globalMapIconVo.setAuditPro(sjxmCount); |
|
|
|
globalMapIconVo.setAuditPro(sjxmCount); |
|
|
|
globalMapIconVo.setMailboxNumber(mailCount); |
|
|
|
globalMapIconVo.setMailboxNumber(mailCount); |
|
|
|
globalMapIconVo.setTalkPro(0L); |
|
|
|
globalMapIconVo.setTalkPro(0L); |
|
|
|
@ -1010,8 +1011,8 @@ public class SubDatavServiceImpl implements SubDatavService { |
|
|
|
Long countryTotal = dataPetitionComplaintMapper.selectMailBySourceCode(beginTime, endTime, GJXFPT.getValue(), departId); |
|
|
|
Long countryTotal = dataPetitionComplaintMapper.selectMailBySourceCode(beginTime, endTime, GJXFPT.getValue(), departId); |
|
|
|
// 公安信访
|
|
|
|
// 公安信访
|
|
|
|
Long policeTotal = dataPetitionComplaintMapper.selectMailBySourceCode(beginTime, endTime, GABXF.getValue(), departId); |
|
|
|
Long policeTotal = dataPetitionComplaintMapper.selectMailBySourceCode(beginTime, endTime, GABXF.getValue(), departId); |
|
|
|
// 12337
|
|
|
|
// 12337 - 已隐藏
|
|
|
|
Long numTotal = dataPetition12337Service.count(new LambdaQueryWrapper<DataPetition12337>().between(DataPetition12337::getDiscoverTime, beginTime, endTime).eq(DataPetition12337::getSecondDepartId, departId)); |
|
|
|
// Long numTotal = dataPetition12337Service.count(new LambdaQueryWrapper<DataPetition12337>().between(DataPetition12337::getDiscoverTime, beginTime, endTime).eq(DataPetition12337::getSecondDepartId, departId));
|
|
|
|
// 局长信箱
|
|
|
|
// 局长信箱
|
|
|
|
QueryWrapper<Mail> subOneMailQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<Mail> subOneMailQueryWrapper = new QueryWrapper<>(); |
|
|
|
String exDepartId = supExternalDepartMapper.getExIdByInId(departId.toString(), "局长信箱"); |
|
|
|
String exDepartId = supExternalDepartMapper.getExIdByInId(departId.toString(), "局长信箱"); |
|
|
|
@ -1019,16 +1020,16 @@ public class SubDatavServiceImpl implements SubDatavService { |
|
|
|
subOneMailQueryWrapper.eq("second_dept_id", exDepartId); |
|
|
|
subOneMailQueryWrapper.eq("second_dept_id", exDepartId); |
|
|
|
subOneMailQueryWrapper.between("create_time", beginTime, endTime); |
|
|
|
subOneMailQueryWrapper.between("create_time", beginTime, endTime); |
|
|
|
Long commissionerTotal = mailMapper.selectCount(subOneMailQueryWrapper); |
|
|
|
Long commissionerTotal = mailMapper.selectCount(subOneMailQueryWrapper); |
|
|
|
// 总数
|
|
|
|
// 总数 - 已隐藏12337
|
|
|
|
Long total = countryTotal + policeTotal + numTotal; |
|
|
|
Long total = countryTotal + policeTotal + commissionerTotal; |
|
|
|
//国家信访
|
|
|
|
//国家信访
|
|
|
|
overview.setCountryMail(countryTotal); |
|
|
|
overview.setCountryMail(countryTotal); |
|
|
|
//公安部信访
|
|
|
|
//公安部信访
|
|
|
|
overview.setPoliceMail(policeTotal); |
|
|
|
overview.setPoliceMail(policeTotal); |
|
|
|
//局长信箱
|
|
|
|
//局长信箱
|
|
|
|
overview.setManageMail(commissionerTotal); |
|
|
|
overview.setManageMail(commissionerTotal); |
|
|
|
//12337信访
|
|
|
|
//12337信访 - 已隐藏
|
|
|
|
overview.setNumberMail(numTotal); |
|
|
|
// overview.setNumberMail(numTotal);
|
|
|
|
overview.setTotalMail(total); |
|
|
|
overview.setTotalMail(total); |
|
|
|
// overview.setCountryMail(120L); // 国家信访
|
|
|
|
// overview.setCountryMail(120L); // 国家信访
|
|
|
|
// overview.setPoliceMail(45L); // 公安部信访
|
|
|
|
// overview.setPoliceMail(45L); // 公安部信访
|
|
|
|
@ -1061,11 +1062,11 @@ public class SubDatavServiceImpl implements SubDatavService { |
|
|
|
Long countryTotal = dataPetitionComplaintMapper.selectPoliceMailBySourceCode(beginTime, endTime, GJXFPT.getValue(), policeDepartId); |
|
|
|
Long countryTotal = dataPetitionComplaintMapper.selectPoliceMailBySourceCode(beginTime, endTime, GJXFPT.getValue(), policeDepartId); |
|
|
|
// 公安
|
|
|
|
// 公安
|
|
|
|
Long policeTotal = dataPetitionComplaintMapper.selectPoliceMailBySourceCode(beginTime, endTime, GABXF.getValue(), policeDepartId); |
|
|
|
Long policeTotal = dataPetitionComplaintMapper.selectPoliceMailBySourceCode(beginTime, endTime, GABXF.getValue(), policeDepartId); |
|
|
|
// 12337 数据
|
|
|
|
// 12337 数据 - 已隐藏
|
|
|
|
LambdaQueryWrapper<DataPetition12337> dataPetition12337LambdaQueryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
// LambdaQueryWrapper<DataPetition12337> dataPetition12337LambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
dataPetition12337LambdaQueryWrapper.between(DataPetition12337::getDiscoverTime, beginTime, endTime); |
|
|
|
// dataPetition12337LambdaQueryWrapper.between(DataPetition12337::getDiscoverTime, beginTime, endTime);
|
|
|
|
dataPetition12337LambdaQueryWrapper.eq(DataPetition12337::getThirdDepartId, re.getDepartId()); |
|
|
|
// dataPetition12337LambdaQueryWrapper.eq(DataPetition12337::getThirdDepartId, re.getDepartId());
|
|
|
|
Long numTotal = dataPetition12337Service.count(dataPetition12337LambdaQueryWrapper); |
|
|
|
// Long numTotal = dataPetition12337Service.count(dataPetition12337LambdaQueryWrapper);
|
|
|
|
// 局长信箱
|
|
|
|
// 局长信箱
|
|
|
|
String exDepartId = supExternalDepartMapper.getExIdByInId(policeDepartId, EX_SOURCE); |
|
|
|
String exDepartId = supExternalDepartMapper.getExIdByInId(policeDepartId, EX_SOURCE); |
|
|
|
Long manageMail = 0L; |
|
|
|
Long manageMail = 0L; |
|
|
|
@ -1078,13 +1079,14 @@ public class SubDatavServiceImpl implements SubDatavService { |
|
|
|
} |
|
|
|
} |
|
|
|
long country = countryTotal == null ? 0L : countryTotal; |
|
|
|
long country = countryTotal == null ? 0L : countryTotal; |
|
|
|
long police = policeTotal == null ? 0L : policeTotal; |
|
|
|
long police = policeTotal == null ? 0L : policeTotal; |
|
|
|
long num = numTotal == null ? 0L : numTotal; |
|
|
|
// 12337 - 已隐藏: long num = numTotal == null ? 0L : numTotal;
|
|
|
|
long manage = manageMail == null ? 0L : manageMail; |
|
|
|
long manage = manageMail == null ? 0L : manageMail; |
|
|
|
Long total = country + police + num; |
|
|
|
// 已隐藏12337: Long total = country + police + num;
|
|
|
|
|
|
|
|
Long total = country + police + manage; |
|
|
|
re.setCountryTotal(String.valueOf(country)); |
|
|
|
re.setCountryTotal(String.valueOf(country)); |
|
|
|
re.setPoliceTotal(String.valueOf(police)); |
|
|
|
re.setPoliceTotal(String.valueOf(police)); |
|
|
|
re.setCommissionerTotal(String.valueOf(manage)); |
|
|
|
re.setCommissionerTotal(String.valueOf(manage)); |
|
|
|
re.setNumTotal(String.valueOf(num)); |
|
|
|
// 已隐藏: re.setNumTotal(String.valueOf(num));
|
|
|
|
re.setTotal(total.toString()); |
|
|
|
re.setTotal(total.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
JSONObject data = new JSONObject().fluentPut("mailMapIconList", res); |
|
|
|
JSONObject data = new JSONObject().fluentPut("mailMapIconList", res); |
|
|
|
|