Commit 9b166f46 by jx-art

ID信息注入

parent ddf57fcf
......@@ -128,7 +128,14 @@ public class AdminChangeConfigServiceImpl implements AdminChangeConfigService {
if (changeConfigReq.getId() == null){
return AjaxResult.of(9001,"修改变更模板主键id不能为空");
}
//新增类似 //内嵌行动方案
//先查询注入ID后在修改
ChangeConfig config = changeConfigService.queryChangeConfig(changeConfigReq.getId());
if (config == null){
return AjaxResult.of(9001,"未找到变更类型配置");
}
changeConfigReq.getChangeTypes().get(0).setId(config.getParentChangeClassId());
changeConfigReq.getChangeTypes().get(1).setId(config.getSonChangeClassId());
//新增类似
List<ChangeType> changeTypes = typeService.updateChangeType(changeConfigReq.getChangeTypes());
ChangeConfig changeConfig = parameterSplicing(changeTypes,changeConfigReq);
changeConfigService.updateChangeConfig(changeConfig);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment