【车站控制操作模式BUG处理】

This commit is contained in:
weizhihong 2023-02-17 09:56:45 +08:00
parent 9f28c2f8ee
commit aad3a16d5b
2 changed files with 4 additions and 2 deletions

View File

@ -618,7 +618,8 @@ public class AtsStationService {
} else { } else {
applyOperation.setApplyDateTime(simulation.getCorrectSystemTime()); applyOperation.setApplyDateTime(simulation.getCorrectSystemTime());
if (applyOperation.isCenterApplication()) { // 如果中心请求,需要车站同意 if (applyOperation.isCenterApplication()) { // 如果中心请求,需要车站同意
applyOperation.setApprovalMember(Arrays.asList(station.getController())); SimulationMember member = simulation.getSimulationMember(SimulationMember.Type.STATION_SUPERVISOR, station.getCode());
applyOperation.setApprovalMember(Arrays.asList(member));
} else { // 车站同意需要中心同意 } else { // 车站同意需要中心同意
applyOperation.setApprovalMember( applyOperation.setApprovalMember(
simulation.getSimulationMembers().stream() simulation.getSimulationMembers().stream()

View File

@ -98,7 +98,8 @@ public class SocketMessageFactory {
case Simulation_Scenes_Reload: case Simulation_Scenes_Reload:
case Competition_Practical: case Competition_Practical:
case SIMULATION_RAIL_TICKET: case SIMULATION_RAIL_TICKET:
case Simulation_Alarm: { case Simulation_Alarm:
case Simulation_Operation_Mode_Apply: {
topicList.add(SimulationSubscribeTopic.Main.buildDestination(group)); topicList.add(SimulationSubscribeTopic.Main.buildDestination(group));
break; break;
} }