修改创建地图功能接口以支持创建时分组

This commit is contained in:
joylink_zhangsai 2023-01-10 16:42:57 +08:00
parent c79221112f
commit 99b519bf61
2 changed files with 3 additions and 2 deletions

View File

@ -322,7 +322,7 @@ public class RtsMapFunctionServiceImpl implements RtsMapFunctionService {
createVO.setMapId(mapId);
createVO.setName(name);
createVO.setDesc(desc);
createVO.setGroup(group);
createVO.setSubset(group);
SimulationWorkParamVO workParamVO = new SimulationWorkParamVO();
workParamVO.setType(simType);
workParamVO.addItemMap(itemMap);

View File

@ -22,7 +22,7 @@ public class RtsMapFunctionCreateVO {
private String desc;
private String group;
private String subset;
@NotNull(message = "参数不能为空")
private SimulationWorkParamVO paramVO;
@ -33,6 +33,7 @@ public class RtsMapFunctionCreateVO {
rtsMapFunction.setName(name);
rtsMapFunction.setDesc(desc);
rtsMapFunction.setType(paramVO.getType().name());
rtsMapFunction.setGroup(subset);
rtsMapFunction.setParam(JsonUtils.writeValueAsString(paramVO));
return rtsMapFunction;
}