Commit 770b34dde9faadff275523cd6b4570741834df8c

Authored by 娄高锋
1 parent 54bdf7ba

update

src/main/java/com/bsth/service/forms/impl/FormsServiceImpl.java
@@ -1099,7 +1099,7 @@ public class FormsServiceImpl implements FormsService { @@ -1099,7 +1099,7 @@ public class FormsServiceImpl implements FormsService {
1099 if (cts != null && cts.size() > 0) { 1099 if (cts != null && cts.size() > 0) {
1100 newList.add(s); 1100 newList.add(s);
1101 } else { 1101 } else {
1102 - if (s.getZdsjActual() != null) { 1102 + if (s.getZdsjActual() != null && s.getFcsjActual() != null) {
1103 newList.add(s); 1103 newList.add(s);
1104 } 1104 }
1105 } 1105 }
@@ -1184,7 +1184,7 @@ public class FormsServiceImpl implements FormsService { @@ -1184,7 +1184,7 @@ public class FormsServiceImpl implements FormsService {
1184 if (cts != null && cts.size() > 0) { 1184 if (cts != null && cts.size() > 0) {
1185 newList_.add(s); 1185 newList_.add(s);
1186 } else { 1186 } else {
1187 - if (s.getZdsjActual() != null) { 1187 + if (s.getZdsjActual() != null && s.getFcsjActual() != null) {
1188 newList_.add(s); 1188 newList_.add(s);
1189 } 1189 }
1190 } 1190 }
src/main/java/com/bsth/service/impl/BusIntervalServiceImpl.java
@@ -418,7 +418,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -418,7 +418,8 @@ public class BusIntervalServiceImpl implements BusIntervalService {
418 for(ScheduleRealInfo schedule : keyMap2.get(date)){ 418 for(ScheduleRealInfo schedule : keyMap2.get(date)){
419 if(schedule.getFcsjT() != null && !schedule.isSflj()) 419 if(schedule.getFcsjT() != null && !schedule.isSflj())
420 fcsjs.add(schedule.getFcsjT()); 420 fcsjs.add(schedule.getFcsjT());
421 - if(schedule.getFcsjActualTime() != null && schedule.getStatus() != -1) 421 + if(schedule.getFcsjActualTime() != null && schedule.getZdsjActualTime() != null
  422 + && schedule.getStatus() != -1)
422 fcsjAs.add(schedule.getFcsjActualTime()); 423 fcsjAs.add(schedule.getFcsjActualTime());
423 } 424 }
424 Collections.sort(fcsjs); 425 Collections.sort(fcsjs);
@@ -1686,7 +1687,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -1686,7 +1687,8 @@ public class BusIntervalServiceImpl implements BusIntervalService {
1686 jhbc++; 1687 jhbc++;
1687 jhlc = jhlc.add(lc); 1688 jhlc = jhlc.add(lc);
1688 } 1689 }
1689 - if(schedule.getStatus() != -1 && !schedule.isCcService()){ 1690 + if(schedule.getFcsjActual() != null && schedule.getZdsjActual() != null
  1691 + && schedule.getStatus() != -1 && !schedule.isCcService()){
1690 sjbc++; 1692 sjbc++;
1691 sjlc = sjlc.add(lc); 1693 sjlc = sjlc.add(lc);
1692 } else if(schedule.getStatus() == -1 && !schedule.isCcService()){ 1694 } else if(schedule.getStatus() == -1 && !schedule.isCcService()){
@@ -1920,8 +1922,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { @@ -1920,8 +1922,8 @@ public class BusIntervalServiceImpl implements BusIntervalService {
1920 dxtz = 0, lbtz = 0; 1922 dxtz = 0, lbtz = 0;
1921 for(ScheduleRealInfo schedule : keyMap.get(key)){ 1923 for(ScheduleRealInfo schedule : keyMap.get(key)){
1922 boolean flag = false; 1924 boolean flag = false;
1923 - if(schedule.getFcsjActual() != null && schedule.getStatus() != -1  
1924 - && !schedule.isCcService()){ 1925 + if(schedule.getFcsjActual() != null && schedule.getZdsjActual() != null
  1926 + && schedule.getStatus() != -1 && !schedule.isCcService()){
1925 sjbc++; 1927 sjbc++;
1926 if(schedule.getDfsj() != null && !schedule.getDfsj().equals(schedule.getFcsj())){ 1928 if(schedule.getDfsj() != null && !schedule.getDfsj().equals(schedule.getFcsj())){
1927 flag = true; 1929 flag = true;
src/main/java/com/bsth/service/schedule/impl/PeopleCarPlanServiceImpl.java
@@ -80,6 +80,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -80,6 +80,7 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
80 schedule.setsGh(rs.getString("s_gh")); 80 schedule.setsGh(rs.getString("s_gh"));
81 schedule.setsName(rs.getString("s_name")); 81 schedule.setsName(rs.getString("s_name"));
82 schedule.setSpId(rs.getLong("sp_id")); 82 schedule.setSpId(rs.getLong("sp_id"));
  83 + schedule.setSflj(rs.getBoolean("sflj"));
83 schedule.setCcService(rs.getBoolean("cc_service")); 84 schedule.setCcService(rs.getBoolean("cc_service"));
84 85
85 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){ 86 if(schedule.getFcsjActual() != null && schedule.getFcsjActual().trim().length() == 0){
@@ -224,8 +225,12 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -224,8 +225,12 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
224 225
225 //分组计算路程公里 226 //分组计算路程公里
226 for(SchedulePlanInfo schedule : list){ 227 for(SchedulePlanInfo schedule : list){
  228 + if(schedule.getsName() != null && schedule.getsName().trim().equals("")){
  229 + schedule.setsName(null);
  230 + }
227 String key = schedule.getXlName() + "/" + schedule.getLpName() + "/" + 231 String key = schedule.getXlName() + "/" + schedule.getLpName() + "/" +
228 schedule.getClZbh() + "/" + schedule.getjName() + "/" + schedule.getsName(); 232 schedule.getClZbh() + "/" + schedule.getjName() + "/" + schedule.getsName();
  233 + key = key.trim();
229 if(!keyMap.containsKey(key)) 234 if(!keyMap.containsKey(key))
230 keyMap.put(key, new ArrayList<SchedulePlanInfo>()); 235 keyMap.put(key, new ArrayList<SchedulePlanInfo>());
231 keyMap.get(key).add(schedule); 236 keyMap.get(key).add(schedule);
@@ -273,10 +278,11 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -273,10 +278,11 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
273 str += (int)lp.charAt(i); 278 str += (int)lp.charAt(i);
274 } 279 }
275 Long i = Long.valueOf(str); 280 Long i = Long.valueOf(str);
276 - if(!tempList.containsKey(i)) 281 + if(!tempList.containsKey(i)){
277 tempList.put(i, new ArrayList<Map<String, Object>>()); 282 tempList.put(i, new ArrayList<Map<String, Object>>());
  283 + keyList.add(i);
  284 + }
278 tempList.get(i).add(m); 285 tempList.get(i).add(m);
279 - keyList.add(i);  
280 } 286 }
281 Collections.sort(keyList); 287 Collections.sort(keyList);
282 for(Long i : keyList){ 288 for(Long i : keyList){
@@ -387,14 +393,22 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -387,14 +393,22 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
387 } 393 }
388 394
389 //班次数和出场数 395 //班次数和出场数
390 - jhbc++;  
391 - if(schedule.getBcType().equals("out"))  
392 - jhcc++; 396 + if(!schedule.isSflj() && schedule.getFcsj() != null && schedule.getZdsj() != null){
  397 + if(!schedule.getBcType().equals("in") && !schedule.getBcType().equals("out") && !schedule.getBcType().equals("ldks")){
  398 + jhbc++;
  399 + System.out.print((""+schedule.isSflj()).equals("false")?"":"X" + " ");
  400 + }
  401 + if(schedule.getBcType().equals("out"))
  402 + jhcc++;
  403 + }
  404 + if(schedule.getStatus() != -1 && schedule.getBcType().equals("out"))
  405 + sjcc++;
393 406
  407 + if(!schedule.getBcType().equals("in") && !schedule.getBcType().equals("out") && !schedule.getBcType().equals("ldks")
  408 + && schedule.getFcsjActual() != null && schedule.getZdsjActual() != null && schedule.getStatus() != -1){
  409 +
394 //发出时间快慢 410 //发出时间快慢
395 if(schedule.getFcsjActual() != null){ 411 if(schedule.getFcsjActual() != null){
396 - if(schedule.getBcType().equals("out"))  
397 - sjcc++;  
398 // schedule.setFcsjActualAll(schedule.getFcsjActual()); 412 // schedule.setFcsjActualAll(schedule.getFcsjActual());
399 if(schedule.getFcsjActualTime() - schedule.getFcsjT() < -1){ 413 if(schedule.getFcsjActualTime() - schedule.getFcsjT() < -1){
400 if(schedule.getXlDir().equals("0")) 414 if(schedule.getXlDir().equals("0"))
@@ -434,14 +448,15 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { @@ -434,14 +448,15 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService {
434 } 448 }
435 } 449 }
436 450
437 - if(!schedule.getBcType().equals("in") && !schedule.getBcType().equals("out")  
438 - && !schedule.getBcType().equals("ldks") && schedule.getFcsjActual() != null){ 451 + if(!schedule.getBcType().equals("in") && !schedule.getBcType().equals("out") && !schedule.getBcType().equals("ldks")
  452 + && schedule.getFcsjActual() != null && schedule.getZdsjActual() != null){
439 // String clZbh = schedule.getClZbh(); 453 // String clZbh = schedule.getClZbh();
440 String xlDir = schedule.getXlDir(); 454 String xlDir = schedule.getXlDir();
441 if(!listMap.containsKey(xlDir)) 455 if(!listMap.containsKey(xlDir))
442 listMap.put(xlDir, new ArrayList<ScheduleRealInfo>()); 456 listMap.put(xlDir, new ArrayList<ScheduleRealInfo>());
443 listMap.get(xlDir).add(schedule); 457 listMap.get(xlDir).add(schedule);
444 } 458 }
  459 + }
445 } 460 }
446 461
447 //求首末班准点率 462 //求首末班准点率
src/main/resources/static/pages/forms/statement/busInterval.html
@@ -308,7 +308,7 @@ @@ -308,7 +308,7 @@
308 // $(".hidden").removeClass("hidden"); 308 // $(".hidden").removeClass("hidden");
309 $get('/busInterval/interval', params, function(result){ 309 $get('/busInterval/interval', params, function(result){
310 // 把数据填充到模版中 310 // 把数据填充到模版中
311 - var tbodyHtml = template('list_workDaily',{list:result,statu:statu}); 311 + var tbodyHtml = template('list_busInteval',{list:result,statu:statu});
312 // 把渲染好的模版html文本追加到表格中 312 // 把渲染好的模版html文本追加到表格中
313 $('#forms').html(tbodyHtml); 313 $('#forms').html(tbodyHtml);
314 _w_table_rowspan("#forms tbody", 1); 314 _w_table_rowspan("#forms tbody", 1);
@@ -440,7 +440,7 @@ @@ -440,7 +440,7 @@
440 }); 440 });
441 441
442 </script> 442 </script>
443 -<script type="text/html" id="list_workDaily"> 443 +<script type="text/html" id="list_busInteval">
444 <thead> 444 <thead>
445 <tr> 445 <tr>
446 <th>日期</th> 446 <th>日期</th>
src/main/resources/static/pages/forms/statement/scheduleAnaly_sum.html
@@ -257,7 +257,7 @@ @@ -257,7 +257,7 @@
257 $(".hidden").removeClass("hidden"); 257 $(".hidden").removeClass("hidden");
258 $get('/pcpc/scheduleAnaly_sum', params, function(result){ 258 $get('/pcpc/scheduleAnaly_sum', params, function(result){
259 // 把数据填充到模版中 259 // 把数据填充到模版中
260 - var tbodyHtml = template('list_scheduleAnaly',{list:result.dataList, companyName:companyName, subCompanyName:subCompanyName}); 260 + var tbodyHtml = template('list_scheduleAnaly_sum',{list:result.dataList, companyName:companyName, subCompanyName:subCompanyName});
261 // 把渲染好的模版html文本追加到表格中 261 // 把渲染好的模版html文本追加到表格中
262 $('#forms tbody').html(tbodyHtml); 262 $('#forms tbody').html(tbodyHtml);
263 263
@@ -384,7 +384,7 @@ @@ -384,7 +384,7 @@
384 }); 384 });
385 385
386 </script> 386 </script>
387 -<script type="text/html" id="list_scheduleAnaly"> 387 +<script type="text/html" id="list_scheduleAnaly_sum">
388 {{each list as obj i}} 388 {{each list as obj i}}
389 <tr> 389 <tr>
390 <th style="display: none;"></th> 390 <th style="display: none;"></th>