大铁生成子系统增加综合演练和实训设计

This commit is contained in:
joylink_zhangsai 2022-11-02 15:58:35 +08:00
parent 28ff6dd8d9
commit 001e343459

View File

@ -395,9 +395,46 @@ public class RtsMapFunctionServiceImpl implements RtsMapFunctionService {
itemMap.put(SimulationWorkParamVO.Item.DEFAULT_MEMBER, stationSupervisorOptional.get().getId());
return buildCreateVO(mapId, name, name, simType, itemMap, domConfig);
};
//综合演练
Supplier<RtsMapFunctionCreateVO> joint = () -> {
String name = "综合演练";
if (systemNameSet.contains(name)) {
msgList.add(String.format("%s已存在不生成", name));
return null;
}
Map<SimulationWorkParamVO.Item, String> itemMap = null;
if (dispatcherOptional.isEmpty()) {
msgList.add(String.format("%s无行调成员未设置%s默认扮演成员", msgPrefix, name));
} else {
itemMap = new HashMap<>();
itemMap.put(SimulationWorkParamVO.Item.DEFAULT_MEMBER, dispatcherOptional.get().getId());
}
SimulationWorkParamVO.DomConfigVO domConfig = new SimulationWorkParamVO.DomConfigVO();
return buildCreateVO(mapId, name, name, simType, itemMap, domConfig);
};
//实训设计
Supplier<RtsMapFunctionCreateVO> trainingDesign = () -> {
String name = "实训设计";
if (systemNameSet.contains(name)) {
msgList.add(String.format("%s已存在不生成", name));
return null;
}
Map<SimulationWorkParamVO.Item, String> itemMap = null;
if (dispatcherOptional.isEmpty()) {
msgList.add(String.format("%s无行调成员未设置%s默认扮演成员", msgPrefix, name));
} else {
itemMap = new HashMap<>();
itemMap.put(SimulationWorkParamVO.Item.DEFAULT_MEMBER, dispatcherOptional.get().getId());
}
SimulationWorkParamVO.DomConfigVO domConfig = SimulationWorkParamVO.DomConfigVO.builder()
.trainingDesign(true).build();
return buildCreateVO(mapId, name, name, simType, itemMap, domConfig);
};
fillFunctions.add(dispatchSystem);
fillFunctions.add(stationSystem);
fillFunctions.add(joint);
fillFunctions.add(trainingDesign);
return fillFunctions;
}