Commit a290c423d7985b4bdda4cf40d99f79382ed71b41

Authored by 娄高锋
1 parent cbe65f5c

出车率线路总数修正

src/main/java/com/bsth/service/forms/impl/FormsServiceImpl.java
@@ -1068,12 +1068,10 @@ public class FormsServiceImpl implements FormsService { @@ -1068,12 +1068,10 @@ public class FormsServiceImpl implements FormsService {
1068 } 1068 }
1069 } 1069 }
1070 Map<String, Object> tempMap = new HashMap<String, Object>(); 1070 Map<String, Object> tempMap = new HashMap<String, Object>();
1071 - int jhcc = 0;  
1072 - int sjcc = 0;  
1073 - int jhbc = 0;  
1074 - int sjbc = 0; 1071 + int jhcc = 0, sjcc = 0;
  1072 + int jhbc = 0, sjbc = 0;
1075 int qz = 0; 1073 int qz = 0;
1076 - for(Map<String, Object> m : tempList){ 1074 + for(Map<String, Object> m : resList){
1077 jhcc += Integer.valueOf(m.get("jhcc").toString()); 1075 jhcc += Integer.valueOf(m.get("jhcc").toString());
1078 sjcc += Integer.valueOf(m.get("sjcc").toString()); 1076 sjcc += Integer.valueOf(m.get("sjcc").toString());
1079 jhbc += Integer.valueOf(m.get("jhbc").toString()); 1077 jhbc += Integer.valueOf(m.get("jhbc").toString());
@@ -1081,7 +1079,7 @@ public class FormsServiceImpl implements FormsService { @@ -1081,7 +1079,7 @@ public class FormsServiceImpl implements FormsService {
1081 qz += Integer.valueOf(m.get("qz").toString()); 1079 qz += Integer.valueOf(m.get("qz").toString());
1082 } 1080 }
1083 tempMap.put("rq", "分类汇总"); 1081 tempMap.put("rq", "分类汇总");
1084 - tempMap.put("line", "共" + tempList.size() + "条线路"); 1082 + tempMap.put("line", "共" + resList.size() + "条线路");
1085 tempMap.put("jhcc", jhcc); 1083 tempMap.put("jhcc", jhcc);
1086 tempMap.put("sjcc", sjcc); 1084 tempMap.put("sjcc", sjcc);
1087 tempMap.put("jhbc", jhbc); 1085 tempMap.put("jhbc", jhbc);