【大铁删除列车条件注释】

This commit is contained in:
weizhihong 2022-05-26 14:40:10 +08:00
parent 2a3f937fdb
commit a007c12b50

View File

@ -124,9 +124,9 @@ public class AtsTrainService {
String.format("不存在车组号为[%s]的车次", groupNumber));
}
if (repository.getConfig().isHasCTC()) {// 大铁删除列车
if (!trainInfo.isStop()) {
throw new SimulationException(SimulationExceptionType.Operation_Handle_FAIL, String.format("列车[%s]未停稳的车次", groupNumber));
}
// if (!trainInfo.isStop()) {
// throw new SimulationException(SimulationExceptionType.Operation_Handle_FAIL, String.format("列车[%s]未停稳的车次", groupNumber));
// }
repository.deleteOnlineTrain(trainInfo.getGroupNumber());
repository.deleteSuperviseTrain(trainInfo.getGroupNumber());
} else if (!trainInfo.isCtcLevel()) { // 原始