fix:修改组件bug

This commit is contained in:
西大锐 2024-05-23 10:22:24 +08:00
parent 63ddf436f4
commit 997faf28ce
2 changed files with 4 additions and 1 deletions

View File

@ -104,6 +104,8 @@ public class Component implements Serializable {
* 图标路径
*/
@ApiModelProperty(name = "icon_path" ,value = "图标路径")
private String iconPath;
/**
* 创建者

View File

@ -51,7 +51,7 @@ public class ComponentServiceImpl implements ComponentService {
throw new RuntimeException("组件不存在");
}
return this.componentDao.queryById(id);
return component;
}
@Override
@ -149,6 +149,7 @@ public class ComponentServiceImpl implements ComponentService {
String inParameters= gson.toJson(componentVo.getInParameters(), LinkedHashMap.class);
String outParameters = gson.toJson(componentVo.getOutParameters(), LinkedHashMap.class);
String envVariable = gson.toJson(componentVo.getEnvVirables(), LinkedHashMap.class);
component.setEnvVirables(envVariable);
component.setInParameters(inParameters);