Commit 180e6f85f2f5a2dde8616b12e669bddf4b3ad20a

Authored by zlz
1 parent 1ccd70db

时刻表上传运管处,只传正常班次

src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
... ... @@ -1005,7 +1005,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{
1005 1005 ttInfoDetail = ttInfoDetailIterator.next();
1006 1006 bcType = ttInfoDetail.getBcType();
1007 1007 sxx = ttInfoDetail.getXlDir();
1008   - // 进出场班次
  1008 + // 进出场班次的里程,加入总里程
1009 1009 if(bcType.equals("in") || bcType.equals("out")){
1010 1010 // 进出班次的计划里程,算空驶里程
1011 1011 emptyLc = ttInfoDetail.getJhlc();
... ... @@ -1013,6 +1013,10 @@ public class TrafficManageServiceImpl implements TrafficManageService{
1013 1013 zlc += emptyLc;
1014 1014 continue;
1015 1015 }
  1016 + // 不是正常班次,不传到运管处
  1017 + if(!bcType.equals("normal")){
  1018 + continue;
  1019 + }
1016 1020 // 如果发车时间格式错误,忽略此条
1017 1021 if(changeTimeFormat(ttInfoDetail) == null){
1018 1022 continue;
... ...