修改大铁CTCbug
This commit is contained in:
parent
5e437a9751
commit
19befb0909
@ -179,11 +179,11 @@ public class CTCLogicLoop {
|
||||
StationPlan stationPlan = tripPlan.queryStationPlanByStationCode(trainInfo.getStationCode());
|
||||
Section previousSection = train.getHeadPosition().getSection(); //前一个的停车区段
|
||||
while (stationPlan != null) {
|
||||
CtcStationPlan ctcStationPlan = new CtcStationPlan(trainInfo, stationPlan);
|
||||
ctcRepository.addCtcStationPlan(ctcStationPlan);
|
||||
Section headSection = train.getHeadPosition().getSection();
|
||||
List<RoutePath> paths = repository.queryRoutePathsByEndAndContainsSection(stationPlan.getSection(), previousSection);
|
||||
if (!CollectionUtils.isEmpty(paths)) {
|
||||
CtcStationPlan ctcStationPlan = new CtcStationPlan(trainInfo, stationPlan);
|
||||
ctcRepository.addCtcStationPlan(ctcStationPlan);
|
||||
/* 接车 */
|
||||
if (headSection.equals(stationPlan.getSection())) { //到站了
|
||||
ctcStationPlan.setReceivingNotice(true);
|
||||
|
Loading…
Reference in New Issue
Block a user