|
|
|
@@ -145,15 +145,20 @@ public class ComponentServiceImpl implements ComponentService { |
|
|
|
|
|
|
|
//将object转成string类型 |
|
|
|
component = ConvertUtil.entityToVo(componentVo,Component.class); |
|
|
|
Gson gson = new Gson(); |
|
|
|
|
|
|
|
component.setEnvVirables(componentVo.getEnvVirables().toString()); |
|
|
|
component.setInParameters(componentVo.getInParameters().toString()); |
|
|
|
component.setOutParameters(componentVo.getOutParameters().toString()); |
|
|
|
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); |
|
|
|
component.setOutParameters(outParameters); |
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
|
|
|
component.setUpdateBy(loginUser.getUsername()); |
|
|
|
component.setUpdateTime(new Date()); |
|
|
|
this.componentDao.update(component); |
|
|
|
return this.queryById(component.getId()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|