fix:修改组件bug
This commit is contained in:
parent
63ddf436f4
commit
997faf28ce
|
@ -104,6 +104,8 @@ public class Component implements Serializable {
|
|||
* 图标路径
|
||||
*/
|
||||
@ApiModelProperty(name = "icon_path" ,value = "图标路径")
|
||||
|
||||
|
||||
private String iconPath;
|
||||
/**
|
||||
* 创建者
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue