MapSystem->RtsMapFunction修改

This commit is contained in:
joylink_zhangsai 2022-12-01 10:57:45 +08:00
parent 13a7f01a77
commit 993c081dbd

View File

@ -251,10 +251,10 @@ public class RtsMapFunctionServiceImpl implements RtsMapFunctionService {
supplier = getSchedulingFunctionSupplier(mapId, systemNameSet, msgList, prefixMsg, simType, dispatcherOptional);
break;
case ISCS:
supplier = getIscsFunctionSupplier(mapId, systemNameSet, msgList, prefixMsg, simType, dispatcherOptional);
supplier = () -> null;
break;
case BIG_SCREEN:
supplier = getBigScreenFunctionSupplier(mapId, systemNameSet, msgList, simType);
supplier = () -> null;
break;
case RUN_PLAN_MAKE:
supplier = getRunPlanDesignFunctionSupplier(mapId, systemNameSet, msgList, simType);
@ -279,10 +279,6 @@ public class RtsMapFunctionServiceImpl implements RtsMapFunctionService {
if (rtsMapFunctionCreateVO != null) {
create(rtsMapFunctionCreateVO, 1);
}
rtsMapFunctionCreateVO = getSceneTrainingFunctionSupplier(mapId, systemNameSet, msgList, simType).get();
if (rtsMapFunctionCreateVO != null) {
create(rtsMapFunctionCreateVO, 1);
}
}
} else if (mapSystem.getType().equals("Exam")) {
if (!hasExam) {
@ -446,7 +442,7 @@ public class RtsMapFunctionServiceImpl implements RtsMapFunctionService {
private Supplier<RtsMapFunctionCreateVO> getDriverFunctionSupplier(long mapId, Set<String> systemNameSet, List<String> msgList, String msgPrefix,
Simulation.Type simType, List<MapMemberVO> mapMemberVOS) {
return () -> {
String name = "司机仿真";
String name = "模拟驾驶";
if (systemNameSet.contains(name)) {
msgList.add(String.format("%s已存在不生成", name));
return null;
@ -472,7 +468,7 @@ public class RtsMapFunctionServiceImpl implements RtsMapFunctionService {
Simulation.Type simType, Optional<MapMemberVO> stationSupervisorOptional) {
//ATS现地工作站
return () -> {
String name = "行值仿真";
String name = "车站仿真";
if (systemNameSet.contains(name)) {
msgList.add(String.format("%s已存在不生成", name));
return null;
@ -495,7 +491,7 @@ public class RtsMapFunctionServiceImpl implements RtsMapFunctionService {
Simulation.Type simType, Optional<MapMemberVO> dispatcherOptional) {
//ATS行调工作站
return () -> {
String name = "调仿真";
String name = "仿真";
if (systemNameSet.contains(name)) {
msgList.add(String.format("%s已存在不生成", name));
return null;