Commit 24ab1bd3 authored by suhuiguang's avatar suhuiguang

1.总览-右屏-安全监管,增加许可超期、资质超期的统计

parent 0e5e51b4
...@@ -526,17 +526,19 @@ public class JGDPStatisticsServiceImpl { ...@@ -526,17 +526,19 @@ public class JGDPStatisticsServiceImpl {
return countDto; return countDto;
} }
private CountDto getYellowStatusCompany(DPFilterParamDto dpFilterParamDto) {
private CountDto getRedStatusCompany(DPFilterParamDto dpFilterParamDto) {
CountDto countDto = new CountDto(); CountDto countDto = new CountDto();
countDto.setLongValue(this.countCompanyForCertDateTimeOut(dpFilterParamDto)); countDto.setLongValue(this.countCompanyForCertDateTimeOut(dpFilterParamDto));
countDto.setLabel("资质临期"); countDto.setLabel("许可超期");
return countDto; return countDto;
} }
private CountDto getRedStatusCompany(DPFilterParamDto dpFilterParamDto) { private CountDto getYellowStatusCompany(DPFilterParamDto dpFilterParamDto) {
CountDto countDto = new CountDto(); CountDto countDto = new CountDto();
countDto.setLongValue(this.countCompanyForCertDateTemporary(dpFilterParamDto)); countDto.setLongValue(this.countCompanyForCertDateTemporary(dpFilterParamDto));
countDto.setLabel("资质超期"); countDto.setLabel("许可临期");
return countDto; return countDto;
} }
......
...@@ -240,21 +240,22 @@ public class StCommonServiceImpl { ...@@ -240,21 +240,22 @@ public class StCommonServiceImpl {
result.put(DPMapStatisticsItemEnum.PRESSURE_PIPELINES.getCode(), length); result.put(DPMapStatisticsItemEnum.PRESSURE_PIPELINES.getCode(), length);
} }
public CountDto getRedStatusCompany(DPFilterParamDto dpFilterParamDto) {
public CountDto getYellowStatusCompany(DPFilterParamDto dpFilterParamDto) {
CountDto countDto = new CountDto(); CountDto countDto = new CountDto();
countDto.setLongValue(this.countCompanyForCertDateTimeOut(dpFilterParamDto)); countDto.setLongValue(this.countCompanyForCertDateTimeOut(dpFilterParamDto));
countDto.setLabel("资质临期"); countDto.setLabel("许可超期");
return countDto; return countDto;
} }
public CountDto getRedStatusCompany(DPFilterParamDto dpFilterParamDto) { public CountDto getYellowStatusCompany(DPFilterParamDto dpFilterParamDto) {
CountDto countDto = new CountDto(); CountDto countDto = new CountDto();
countDto.setLongValue(this.countCompanyForCertDateTemporary(dpFilterParamDto)); countDto.setLongValue(this.countCompanyForCertDateTemporary(dpFilterParamDto));
countDto.setLabel("资质超期"); countDto.setLabel("许可临期");
return countDto; return countDto;
} }
private long countCompanyForCertDateTemporary(DPFilterParamDto dpFilterParamDto) { private long countCompanyForCertDateTemporary(DPFilterParamDto dpFilterParamDto) {
String orgCode = this.getAndSetOrgCode(dpFilterParamDto.getCityCode()); String orgCode = this.getAndSetOrgCode(dpFilterParamDto.getCityCode());
// 临期6个月 // 临期6个月
......
...@@ -602,7 +602,7 @@ public class ZLDPStatisticsServiceImpl { ...@@ -602,7 +602,7 @@ public class ZLDPStatisticsServiceImpl {
JSONObject jsonObject11 = new JSONObject(); JSONObject jsonObject11 = new JSONObject();
jsonObject11.put("key", "zzcq"); jsonObject11.put("key", "zzcq");
jsonObject11.put("value", orgCode == null ? 0L: stCommonService.getRedStatusCompany(params).getLongValue()); jsonObject11.put("value", orgCode == null ? 0L: stCommonService.getRedStatusCompany(params).getLongValue());
jsonObject11.put("name", "资质超期"); jsonObject11.put("name", "许可超期");
jsonArray.add(jsonObject0); jsonArray.add(jsonObject0);
jsonArray.add(jsonObject1); jsonArray.add(jsonObject1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment