修改大铁CTCbug

This commit is contained in:
joylink_zhangsai 2022-04-24 11:12:37 +08:00
parent 5e437a9751
commit 19befb0909

View File

@ -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);