|
|
|
|
@ -16,7 +16,9 @@ import com.biutag.supervision.pojo.param.*;
|
|
|
|
|
import com.biutag.supervision.pojo.request.datav.DataVRequest; |
|
|
|
|
import com.biutag.supervision.pojo.vo.AuditSuperviseMapIconVo; |
|
|
|
|
import com.biutag.supervision.pojo.vo.GlobalMapIconVo; |
|
|
|
|
import com.biutag.supervision.pojo.vo.GlobalOverViewVo; |
|
|
|
|
import com.biutag.supervision.pojo.vo.OrganizeProblemRankVo; |
|
|
|
|
import com.biutag.supervision.repository.dataCaseVerif.DataCaseVerifResourceService; |
|
|
|
|
import com.biutag.supervision.repository.dataPetitionComplaint.DataPetitionComplaintResourceService; |
|
|
|
|
import com.biutag.supervision.repository.mail.MailResourceService; |
|
|
|
|
import com.biutag.supervision.repository.negative.NegativeResourceService; |
|
|
|
|
@ -62,6 +64,9 @@ public class DatavServiceImpl implements DatavService {
|
|
|
|
|
@Resource |
|
|
|
|
private SupExternalDepartResourceService supExternalDepartResourceService; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private DataCaseVerifResourceService dataCaseVerifResourceService; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Result<JSONObject> getAuditMap(DataVRequest request) { |
|
|
|
|
List<AuditSuperviseMapIconVo> auditSuperviseMapIconVoList = new ArrayList<>(); |
|
|
|
|
@ -118,6 +123,11 @@ public class DatavServiceImpl implements DatavService {
|
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取一级首页的地图数据 |
|
|
|
|
* @param request |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public Result<JSONObject> getGlobalMap(DataVRequest request) { |
|
|
|
|
List<GlobalMapIconVo> globalMapIconVoList = new ArrayList<>(); |
|
|
|
|
@ -207,6 +217,11 @@ public class DatavServiceImpl implements DatavService {
|
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取一级首页的机构问题排名 |
|
|
|
|
* @param request |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public Result<JSONObject> getOrganizationRank(DataVRequest request) { |
|
|
|
|
Map<String, DepartAndSubDepartDto> fxsjDepartAndSubDepartData = getDepartAndSubDepartData(DepartGroupEnum.COUNTY_CITY_BUREAUS.getId()); |
|
|
|
|
@ -257,6 +272,67 @@ public class DatavServiceImpl implements DatavService {
|
|
|
|
|
return Result.success(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取一级首页中间总览数据 |
|
|
|
|
* @param request |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public Result<JSONObject> getAllGlobalCount(DataVRequest request) { |
|
|
|
|
|
|
|
|
|
GlobalOverViewVo overview = GlobalOverViewVo.of(); |
|
|
|
|
List<Date> dates = Arrays.asList(request.getBeginTime(), request.getEndTime()); |
|
|
|
|
// 现场督查
|
|
|
|
|
NegativeQueryParam xcdcQueryParam = new NegativeQueryParam(); |
|
|
|
|
xcdcQueryParam.setCrtTime(dates); |
|
|
|
|
xcdcQueryParam.setProblemSourcesCode(ProblemSourcesEnum.GROUP_13); |
|
|
|
|
long xcdcCount = negativeResourceService.count(xcdcQueryParam); |
|
|
|
|
// 数字督察
|
|
|
|
|
NegativeQueryParam szdcQueryParam = new NegativeQueryParam(); |
|
|
|
|
szdcQueryParam.setCrtTime(dates); |
|
|
|
|
szdcQueryParam.setProblemSourcesCode(ProblemSourcesEnum.GROUP_14_15_16); |
|
|
|
|
long szdcCount = negativeResourceService.count(szdcQueryParam); |
|
|
|
|
// 案件核查
|
|
|
|
|
DataCaseVerifQueryParam ajhcQueryParam = new DataCaseVerifQueryParam(); |
|
|
|
|
ajhcQueryParam.setCreateTime(dates); |
|
|
|
|
long ajhcCount = dataCaseVerifResourceService.count(ajhcQueryParam); |
|
|
|
|
// 局长信箱
|
|
|
|
|
MailQueryParam mailQueryParam = new MailQueryParam(); |
|
|
|
|
mailQueryParam.setCreateTime(dates); |
|
|
|
|
long jzxxCount = mailResourceService.count(mailQueryParam); |
|
|
|
|
|
|
|
|
|
// 12337
|
|
|
|
|
NegativeQueryParam xf12337Param = new NegativeQueryParam(); |
|
|
|
|
xf12337Param.setCrtTime(dates); |
|
|
|
|
xf12337Param.setProblemSourcesCode(Collections.singletonList(ProblemSourcesEnum.XF12337.getValue())); |
|
|
|
|
long xf12337Count = negativeResourceService.count(xf12337Param); |
|
|
|
|
// 国家信访
|
|
|
|
|
DataPetitionComplaintQueryParam countryParam = new DataPetitionComplaintQueryParam(); |
|
|
|
|
countryParam.setCreateTime(dates); |
|
|
|
|
countryParam.setProblemSourcesCode(ProblemSourcesEnum.GJXFPT.getValue()); |
|
|
|
|
long gjxfCount = dataPetitionComplaintResourceService.count(countryParam); |
|
|
|
|
// 公安部门信访
|
|
|
|
|
DataPetitionComplaintQueryParam policeParam = new DataPetitionComplaintQueryParam(); |
|
|
|
|
policeParam.setCreateTime(dates); |
|
|
|
|
policeParam.setProblemSourcesCode(ProblemSourcesEnum.GABXF.getValue()); |
|
|
|
|
long gabxfCount = dataPetitionComplaintResourceService.count(policeParam); |
|
|
|
|
|
|
|
|
|
// 审计项目数
|
|
|
|
|
ReportProjectQueryParam reportProjectQueryParam = new ReportProjectQueryParam(); |
|
|
|
|
reportProjectQueryParam.setArchivingStart(request.getBeginTime()); |
|
|
|
|
reportProjectQueryParam.setArchivingEnd(request.getEndTime()); |
|
|
|
|
long sjxmCount = reportProjectResourceService.count(reportProjectQueryParam); |
|
|
|
|
|
|
|
|
|
overview.setSupervisionPro(xcdcCount); |
|
|
|
|
overview.setNumSupervisionPro(szdcCount); |
|
|
|
|
overview.setCaseVerificationPro(ajhcCount); |
|
|
|
|
overview.setMailboxNumber(jzxxCount); |
|
|
|
|
overview.setComplaintPro(xf12337Count+gjxfCount+gabxfCount); |
|
|
|
|
overview.setAuditPro(sjxmCount); |
|
|
|
|
overview.calcTotal(); |
|
|
|
|
JSONObject data = new JSONObject().fluentPut("overview", overview); |
|
|
|
|
return Result.success(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return 部门和子部门映射数据 |
|
|
|
|
|