隐患汇总增加内容并优化
parent
6dc35668e7
commit
bb6c7d8361
|
@ -1771,10 +1771,23 @@ public class HiddenApiController extends BaseController {
|
|||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
if (pd.get("YEAR").equals("")){
|
||||
pd.put("YEAR","2024");
|
||||
String year = DateUtil.getYear();
|
||||
pd.put("YEAR",year);
|
||||
}
|
||||
List<PageData> dataList = hiddenApiService.goSummaryTable(pd);
|
||||
List<PageData> dataTypeList = hiddenApiService.goSummaryTypeTable(pd);
|
||||
List<PageData> varList = hiddenApiService.dealData(dataList);
|
||||
List<PageData> varTypeList = hiddenApiService.dealData(dataTypeList);
|
||||
for(PageData pdDate:varList){
|
||||
for(PageData pdTypeDate:varTypeList){
|
||||
if(pdDate.getString("MONTH").equals(pdTypeDate.getString("MONTH"))){
|
||||
pdDate.put("wdbaqztCount",pdTypeDate.getString("wdbaqztCount"));
|
||||
pdDate.put("gldqxCount",pdTypeDate.getString("gldqxCount"));
|
||||
pdDate.put("hjdbaqysCount",pdTypeDate.getString("hjdbaqysCount"));
|
||||
pdDate.put("rdbaqysCount",pdTypeDate.getString("rdbaqysCount"));
|
||||
}
|
||||
}
|
||||
}
|
||||
map.put("varList", varList);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
|
|
|
@ -87,5 +87,8 @@ public interface HiddenApiMapper {
|
|||
List<PageData> goSummaryTable(PageData pd);
|
||||
|
||||
List<PageData> listForExcel(PageData pd);
|
||||
|
||||
List<PageData> goSummaryTypeTable(PageData pd);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -111,5 +111,7 @@ public interface HiddenApiService {
|
|||
public List<PageData> dealData (List<PageData> pd) throws Exception;
|
||||
|
||||
public List<PageData> listForExcel (PageData pd) throws Exception;
|
||||
|
||||
public List<PageData> goSummaryTypeTable (PageData pd) throws Exception;
|
||||
}
|
||||
|
||||
|
|
|
@ -281,6 +281,17 @@ public class HiddenApiServiceImpl implements HiddenApiService{
|
|||
return hiddenApiMapper.listForExcel(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据类型获取统计数据
|
||||
* @param pd
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
public List<PageData> goSummaryTypeTable(PageData pd) throws Exception {
|
||||
return hiddenApiMapper.goSummaryTypeTable(pd);
|
||||
}
|
||||
|
||||
public List<PageData> dealData (List<PageData> pdList) throws Exception{
|
||||
ArrayList<PageData> varList = new ArrayList<>();
|
||||
PageData pd1 = new PageData();
|
||||
|
@ -372,6 +383,11 @@ public class HiddenApiServiceImpl implements HiddenApiService{
|
|||
pd.put("TOTAL_COUNT_OTHER",pageData.getString("TOTAL_COUNT"));
|
||||
pd.put("REVISED_COUNT_OTHER",pageData.getString("REVISED_COUNT"));
|
||||
pd.put("COMPLERATE_OTHER",pageData.getString("COMPLERATE"));
|
||||
}else {
|
||||
pd.put("wdbaqztCount",pageData.getString("wdbaqztCount"));
|
||||
pd.put("gldqxCount",pageData.getString("gldqxCount"));
|
||||
pd.put("hjdbaqysCount",pageData.getString("hjdbaqysCount"));
|
||||
pd.put("rdbaqysCount",pageData.getString("rdbaqysCount"));
|
||||
}
|
||||
pd.put("CREATE_MONTH",pageData.getString("CREATE_MONTH"));
|
||||
return pd;
|
||||
|
|
Loading…
Reference in New Issue