修改佛山线运行图导入逻辑;修改ats准备发车时的逻辑

This commit is contained in:
joylink_zhangsai 2022-03-31 10:22:20 +08:00
parent 5c3a88d2aa
commit 78796a7009
2 changed files with 9 additions and 3 deletions

View File

@ -80,7 +80,7 @@ public class FoshanTramRunPlanNew implements IRunPlanStrategyNew {
tripVO.setDestinationCode("BF");
break;
case "雷岗":
if (tripVO.getServiceNumber().equals("09")) { //据观察服务号09是调试
if (tripVO.getServiceNumber().equals("02")) { //据观察服务号02是备用
tripVO.setStartSectionCode("T38"); //G2109
tripVO.setDestinationCode("AA");
} else {
@ -108,7 +108,7 @@ public class FoshanTramRunPlanNew implements IRunPlanStrategyNew {
tripVO.setDestinationCode("BF");
break;
case "雷岗":
if (tripVO.getServiceNumber().equals("09")) { //据观察服务号09是调试
if (tripVO.getServiceNumber().equals("02")) { //据观察服务号02是备用
tripVO.setEndSectionCode("T38"); //G2109
tripVO.setDestinationCode("AA");
} else {
@ -117,6 +117,9 @@ public class FoshanTramRunPlanNew implements IRunPlanStrategyNew {
}
break;
}
if (tripVO.getServiceNumber().equals("02")) {
tripVO.setIsBackUp(true);
}
}
/**
@ -133,7 +136,7 @@ public class FoshanTramRunPlanNew implements IRunPlanStrategyNew {
return;
}
if ("雷岗".equals(stationVO.getRunPlanName())) {
if (runPlanImport.getServiceNumber().equals("09")) { //据观察服务号09是调试
if (runPlanImport.getServiceNumber().equals("02")) { //据观察服务号02是备用
timeVO.setSectionCode("T38"); //G2109
} else {
timeVO.setSectionCode("T39"); //G2103

View File

@ -163,6 +163,9 @@ public class AtsPlanTrainStageService implements AtsStageService {
return;
}
if (tripPlan.isLastPlan(stationPlan)) {
if (tripPlan.isBackup() && parkSection.equals(tripPlan.getEndSection())) {
return;
}
// 到达终点站准备折返
log.debug(String.format("列车[%s]折返初始化", trainInfo.getGroupNumber()));
List<RoutePath> routePaths = repository.getRoutePaths(parkSection, tripPlan.getEndSection());