[新增]开启自动进路的信号机不能开放引导信号
This commit is contained in:
parent
1e2ed4d305
commit
b302bb360b
@ -413,6 +413,10 @@ public class CiApiServiceImpl2 implements CiApiService {
|
|||||||
throw BusinessExceptionAssertEnum.ARGUMENT_ILLEGAL.exception(
|
throw BusinessExceptionAssertEnum.ARGUMENT_ILLEGAL.exception(
|
||||||
"signalCode和routeCode不能都为空");
|
"signalCode和routeCode不能都为空");
|
||||||
}
|
}
|
||||||
|
//开启联锁自动进路的信号机不能办理引导进路,需先解除自动进路(成都三操作文档)
|
||||||
|
if (signal.getRouteList().stream().anyMatch(Route::isFleetMode)) {
|
||||||
|
throw BusinessExceptionAssertEnum.OPERATION_FAIL.exception("需先解除自动进路状态");
|
||||||
|
}
|
||||||
|
|
||||||
if (route == null && signal.getRouteList().stream().anyMatch(Route::isAnySwitchMasterLock)) {
|
if (route == null && signal.getRouteList().stream().anyMatch(Route::isAnySwitchMasterLock)) {
|
||||||
openGuideAspect4GuideMasterLock(simulation, signal);
|
openGuideAspect4GuideMasterLock(simulation, signal);
|
||||||
|
Loading…
Reference in New Issue
Block a user