|
|
|
@ -186,10 +186,16 @@ public class ToolServiceImpl implements ToolService { |
|
|
|
String resultMsg = String.valueOf(resultMap.get("result_msg")); |
|
|
|
throw new RuntimeException(resultMsg); |
|
|
|
} |
|
|
|
inData.setState("Active"); |
|
|
|
inData.setCreateDate(new Date()); |
|
|
|
//对象拷贝 |
|
|
|
IfsToolData ifsToolData = new IfsToolData(); |
|
|
|
//属性拷贝 |
|
|
|
BeanUtils.copyProperties(inData, ifsToolData); |
|
|
|
|
|
|
|
/* //2.校验存在调用接口 |
|
|
|
//2.校验存在调用接口 |
|
|
|
String toolURL = apiUrl + "/tool/ifs/modifyToolDataToIfs"; |
|
|
|
ResponseData toolResponse = HttpClientUtil.doPostByRawWithPLM(toolURL, inData); |
|
|
|
ResponseData toolResponse = HttpClientUtil.doPostByRawWithPLM(toolURL, ifsToolData); |
|
|
|
if (!"200".equals(toolResponse.getCode())) { |
|
|
|
throw new RuntimeException("IFS Tool修改异常:" + toolResponse.getMsg()); |
|
|
|
} |
|
|
|
@ -197,7 +203,7 @@ public class ToolServiceImpl implements ToolService { |
|
|
|
String objStr = String.valueOf(toolResponse.getObj()); |
|
|
|
IfsToolData ifsTool = JSON.parseObject(objStr, IfsToolData.class); |
|
|
|
inData.setIfsRowId(ifsTool.getIfsRowId()); |
|
|
|
inData.setIfsRowVersion(ifsTool.getIfsRowVersion());*/ |
|
|
|
inData.setIfsRowVersion(ifsTool.getIfsRowVersion()); |
|
|
|
//2.调用方法保存当前的数据 |
|
|
|
toolDao.updateToolInfo(inData); |
|
|
|
} |
|
|
|
@ -241,13 +247,19 @@ public class ToolServiceImpl implements ToolService { |
|
|
|
String resultMsg = String.valueOf(resultMap.get("result_msg")); |
|
|
|
throw new RuntimeException(resultMsg); |
|
|
|
} |
|
|
|
inData.setState("Active"); |
|
|
|
inData.setCreateDate(new Date()); |
|
|
|
//对象拷贝 |
|
|
|
IfsToolData ifsToolData = new IfsToolData(); |
|
|
|
//属性拷贝 |
|
|
|
BeanUtils.copyProperties(inData, ifsToolData); |
|
|
|
//2.校验存在调用接口 |
|
|
|
/*//判断是否存在替代的 |
|
|
|
//判断是否存在替代的 |
|
|
|
String toolURL = apiUrl + "/tool/ifs/removeToolDataToIfs"; |
|
|
|
ResponseData toolResponse = HttpClientUtil.doPostByRawWithPLM(toolURL, inData); |
|
|
|
ResponseData toolResponse = HttpClientUtil.doPostByRawWithPLM(toolURL, ifsToolData); |
|
|
|
if (!"200".equals(toolResponse.getCode())) { |
|
|
|
throw new RuntimeException("IFS Tool删除异常:" + toolResponse.getMsg()); |
|
|
|
}*/ |
|
|
|
} |
|
|
|
//3.调用方法保存当前的数据 |
|
|
|
toolDao.deleteToolInfo(inData); |
|
|
|
toolDao.deleteToolInstanceByTool(inData); |
|
|
|
|