修改创建地图功能接口以支持创建时分组
This commit is contained in:
parent
c79221112f
commit
99b519bf61
@ -322,7 +322,7 @@ public class RtsMapFunctionServiceImpl implements RtsMapFunctionService {
|
|||||||
createVO.setMapId(mapId);
|
createVO.setMapId(mapId);
|
||||||
createVO.setName(name);
|
createVO.setName(name);
|
||||||
createVO.setDesc(desc);
|
createVO.setDesc(desc);
|
||||||
createVO.setGroup(group);
|
createVO.setSubset(group);
|
||||||
SimulationWorkParamVO workParamVO = new SimulationWorkParamVO();
|
SimulationWorkParamVO workParamVO = new SimulationWorkParamVO();
|
||||||
workParamVO.setType(simType);
|
workParamVO.setType(simType);
|
||||||
workParamVO.addItemMap(itemMap);
|
workParamVO.addItemMap(itemMap);
|
||||||
|
@ -22,7 +22,7 @@ public class RtsMapFunctionCreateVO {
|
|||||||
|
|
||||||
private String desc;
|
private String desc;
|
||||||
|
|
||||||
private String group;
|
private String subset;
|
||||||
|
|
||||||
@NotNull(message = "参数不能为空")
|
@NotNull(message = "参数不能为空")
|
||||||
private SimulationWorkParamVO paramVO;
|
private SimulationWorkParamVO paramVO;
|
||||||
@ -33,6 +33,7 @@ public class RtsMapFunctionCreateVO {
|
|||||||
rtsMapFunction.setName(name);
|
rtsMapFunction.setName(name);
|
||||||
rtsMapFunction.setDesc(desc);
|
rtsMapFunction.setDesc(desc);
|
||||||
rtsMapFunction.setType(paramVO.getType().name());
|
rtsMapFunction.setType(paramVO.getType().name());
|
||||||
|
rtsMapFunction.setGroup(subset);
|
||||||
rtsMapFunction.setParam(JsonUtils.writeValueAsString(paramVO));
|
rtsMapFunction.setParam(JsonUtils.writeValueAsString(paramVO));
|
||||||
return rtsMapFunction;
|
return rtsMapFunction;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user