Browse Source

一类交调站问题修改

develop
lau572 4 months ago
parent
commit
6682b5f6b3
  1. 2
      zc-business/src/main/java/com/zc/business/controller/WordController.java
  2. 12
      zc-business/src/main/java/com/zc/business/service/impl/DcTrafficSurveyDataServiceImpl.java

2
zc-business/src/main/java/com/zc/business/controller/WordController.java

@ -690,7 +690,7 @@ public class WordController {
PoiUtil.createHeading2(doc, "当天全路段实时车流量-济南方向"); PoiUtil.createHeading2(doc, "当天全路段实时车流量-济南方向");
XWPFTable table = doc.createTable(15,3); XWPFTable table = doc.createTable(17,3);
//列宽自动分割 //列宽自动分割
CTTblWidth infoTableWidth = table.getCTTbl().addNewTblPr().addNewTblW(); CTTblWidth infoTableWidth = table.getCTTbl().addNewTblPr().addNewTblW();
infoTableWidth.setType(STTblWidth.DXA); infoTableWidth.setType(STTblWidth.DXA);

12
zc-business/src/main/java/com/zc/business/service/impl/DcTrafficSurveyDataServiceImpl.java

@ -650,10 +650,14 @@ public class DcTrafficSurveyDataServiceImpl implements IDcTrafficSurveyDataServi
) )
)); ));
if (dataList != null && dataList.size() > 0){ if (dataList != null && dataList.size() > 0){
JSONArray hezeLanesData = dataList.get("1"); if(dataList.containsKey("1")){
formatTrafficSurveyData(hezeData,hezeLanesData); JSONArray hezeLanesData = dataList.get("1");
JSONArray jinanLanesData = dataList.get("3"); formatTrafficSurveyData(hezeData,hezeLanesData);
formatTrafficSurveyData(jinanData,jinanLanesData); }
if (dataList.containsKey("3")){
JSONArray jinanLanesData = dataList.get("3");
formatTrafficSurveyData(jinanData,jinanLanesData);
}
} }
Map<String,Object> dataItem = new HashMap<>(); Map<String,Object> dataItem = new HashMap<>();

Loading…
Cancel
Save