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