|
|
|
@ -449,21 +449,20 @@ public class ToolServiceImpl implements ToolService { |
|
|
|
String ifsPassword = ifsUser.getIfsPassword(); |
|
|
|
//获取链接 |
|
|
|
Server srv = ifsServer.getIfsServer(ifsUsername, ifsPassword); |
|
|
|
//调用新的api方法 执行新增的方法 |
|
|
|
ToolInfo returnTool = this.syncIfsToolInstance(srv, toolInstanceData); |
|
|
|
//设置版本号 |
|
|
|
inData.setIfsRowId(returnTool.getIfsRowId()); |
|
|
|
inData.setIfsRowVersion(returnTool.getIfsRowVersion()); |
|
|
|
try { //调用新的api方法 执行新增的方法 |
|
|
|
ToolInfo returnTool = this.syncIfsToolInstance(srv, toolInstanceData); |
|
|
|
//设置版本号 |
|
|
|
inData.setIfsRowId(returnTool.getIfsRowId()); |
|
|
|
inData.setIfsRowVersion(returnTool.getIfsRowVersion()); |
|
|
|
|
|
|
|
//2.调用api处理工具实例部分的属性数据 |
|
|
|
if(propertyNo != null && !propertyNo.equals("")){ |
|
|
|
try { |
|
|
|
//2.调用api处理工具实例部分的属性数据 |
|
|
|
if(propertyNo != null && !propertyNo.equals("")){ |
|
|
|
this.syncIfsToolInstancePropertyTemplate(srv, site, toolId, toolInstance, propertyNo); |
|
|
|
} catch (Exception e){ |
|
|
|
//2.调用IFS API接口 |
|
|
|
this.removeIfsToolInstance(srv, toolInstanceData); |
|
|
|
throw new RuntimeException(e.getMessage()); |
|
|
|
} |
|
|
|
} catch (Exception e){ |
|
|
|
//2.调用IFS API接口 |
|
|
|
this.removeIfsToolInstance(srv, toolInstanceData); |
|
|
|
throw new RuntimeException(e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|