Commit c34ebcc1f6d6e9e45c65b81eddfaeb9cf8bbe8f3
1 parent
65c5494c
运管处bug修改
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
| @@ -573,6 +573,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | @@ -573,6 +573,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | ||
| 573 | String tomorrow = sdfnyr.format(DateUtils.addDays(new Date(), +1)); | 573 | String tomorrow = sdfnyr.format(DateUtils.addDays(new Date(), +1)); |
| 574 | // 查询所有班次 | 574 | // 查询所有班次 |
| 575 | List<SchedulePlanInfo> schedulePlanList = schedulePlanInfoRepository.findLineScheduleBc(tomorrow); | 575 | List<SchedulePlanInfo> schedulePlanList = schedulePlanInfoRepository.findLineScheduleBc(tomorrow); |
| 576 | + int j = 0; // 初始化标识 | ||
| 576 | if(schedulePlanList != null ){ | 577 | if(schedulePlanList != null ){ |
| 577 | int size = schedulePlanList.size(); | 578 | int size = schedulePlanList.size(); |
| 578 | for (int i = 0; i < size; i++) { | 579 | for (int i = 0; i < size; i++) { |
| @@ -583,7 +584,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | @@ -583,7 +584,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | ||
| 583 | if(line.getInUse() == null || line.getInUse() == 0){ | 584 | if(line.getInUse() == null || line.getInUse() == 0){ |
| 584 | continue; | 585 | continue; |
| 585 | } | 586 | } |
| 586 | - if(i == 0){// 第一次,则初始化值 | 587 | + if(++j == 1){// 第一次,则初始化值 |
| 587 | zbh = schedulePlanInfo.getClZbh(); | 588 | zbh = schedulePlanInfo.getClZbh(); |
| 588 | lp = schedulePlanInfo.getLp(); | 589 | lp = schedulePlanInfo.getLp(); |
| 589 | // 拼装XML | 590 | // 拼装XML |