|
|
|
@ -488,7 +488,7 @@ public class ToolServiceImpl implements ToolService { |
|
|
|
String resultMsg = String.valueOf(resultMap.get("result_msg")); |
|
|
|
throw new RuntimeException(resultMsg); |
|
|
|
} |
|
|
|
/* IfsToolInstanceDateData instanceDateData = new IfsToolInstanceDateData(); |
|
|
|
IfsToolInstanceDateData instanceDateData = new IfsToolInstanceDateData(); |
|
|
|
//属性拷贝 |
|
|
|
BeanUtils.copyProperties(inData, instanceDateData); |
|
|
|
//设置时间的信息 |
|
|
|
@ -504,7 +504,7 @@ public class ToolServiceImpl implements ToolService { |
|
|
|
String objStr = String.valueOf(toolResponse.getObj()); |
|
|
|
IfsToolInstanceDateData ifsTool = JSON.parseObject(objStr, IfsToolInstanceDateData.class); |
|
|
|
inData.setIfsRowId(ifsTool.getIfsRowId()); |
|
|
|
inData.setIfsRowVersion(ifsTool.getIfsRowVersion());*/ |
|
|
|
inData.setIfsRowVersion(ifsTool.getIfsRowVersion()); |
|
|
|
//保存新增的数据 |
|
|
|
toolDao.insertToolInstanceDate(inData); |
|
|
|
} |
|
|
|
@ -557,7 +557,7 @@ public class ToolServiceImpl implements ToolService { |
|
|
|
String resultMsg = String.valueOf(resultMap.get("result_msg")); |
|
|
|
throw new RuntimeException(resultMsg); |
|
|
|
} |
|
|
|
/* IfsToolInstanceDateData instanceDateData = new IfsToolInstanceDateData(); |
|
|
|
IfsToolInstanceDateData instanceDateData = new IfsToolInstanceDateData(); |
|
|
|
//属性拷贝 |
|
|
|
BeanUtils.copyProperties(inData, instanceDateData); |
|
|
|
//设置时间的信息 |
|
|
|
@ -573,7 +573,7 @@ public class ToolServiceImpl implements ToolService { |
|
|
|
String objStr = String.valueOf(toolResponse.getObj()); |
|
|
|
IfsToolInstanceDateData ifsTool = JSON.parseObject(objStr, IfsToolInstanceDateData.class); |
|
|
|
inData.setIfsRowId(ifsTool.getIfsRowId()); |
|
|
|
inData.setIfsRowVersion(ifsTool.getIfsRowVersion());*/ |
|
|
|
inData.setIfsRowVersion(ifsTool.getIfsRowVersion()); |
|
|
|
//保存新增的数据 |
|
|
|
toolDao.updateToolInstanceDate(inData); |
|
|
|
} |
|
|
|
@ -610,14 +610,14 @@ public class ToolServiceImpl implements ToolService { |
|
|
|
int id = inData.getId(); |
|
|
|
|
|
|
|
IfsToolInstanceDateData instanceDateData = new IfsToolInstanceDateData(); |
|
|
|
/*//属性拷贝 |
|
|
|
//属性拷贝 |
|
|
|
BeanUtils.copyProperties(inData, instanceDateData); |
|
|
|
//2.校验存在调用接口 |
|
|
|
String toolURL = apiUrl + "/tool/ifs/removeToolInstanceDateToIfs"; |
|
|
|
ResponseData toolResponse = HttpClientUtil.doPostByRawWithPLM(toolURL, instanceDateData); |
|
|
|
if (!"200".equals(toolResponse.getCode())) { |
|
|
|
throw new RuntimeException("IFS ToolInstanceDate删除异常:" + toolResponse.getMsg()); |
|
|
|
}*/ |
|
|
|
} |
|
|
|
//保存新增的数据 |
|
|
|
toolDao.deleteToolInstanceDate(inData); |
|
|
|
} |
|
|
|
|