|
|
|
@ -1984,16 +1984,21 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 1.6 同步库存件的模板和属性 |
|
|
|
String addInventoryPartModelURL = apiUrl + "/part/ifs/modifyInventoryPartCharacteristicTemplate"; |
|
|
|
ResponseData addInventoryPartModelResponse = HttpClientUtil.doPostByRawWithPLM(addInventoryPartModelURL, partIfsInventoryModel); |
|
|
|
if (!"200".equals(addInventoryPartModelResponse.getCode())) { |
|
|
|
throw new RuntimeException("IFS库存件模板新增异常:" + addInventoryPartModelResponse.getMsg()); |
|
|
|
if (partIfsInventoryModel.getEngAttribute() != null && !partIfsInventoryModel.getEngAttribute().isEmpty()) { |
|
|
|
String addInventoryPartModelURL = apiUrl + "/part/ifs/modifyInventoryPartCharacteristicTemplate"; |
|
|
|
ResponseData addInventoryPartModelResponse = HttpClientUtil.doPostByRawWithPLM(addInventoryPartModelURL, partIfsInventoryModel); |
|
|
|
if (!"200".equals(addInventoryPartModelResponse.getCode())) { |
|
|
|
throw new RuntimeException("IFS库存件模板新增异常:" + addInventoryPartModelResponse.getMsg()); |
|
|
|
} |
|
|
|
} |
|
|
|
String addInventoryPartPropertyURL = apiUrl + "/part/ifs/syncInventoryPartCharacteristics"; |
|
|
|
ResponseData addInventoryPartPropertyResponse = HttpClientUtil.doPostByRawWithPLM(addInventoryPartPropertyURL, propertyList); |
|
|
|
if (!"200".equals(addInventoryPartPropertyResponse.getCode())) { |
|
|
|
throw new RuntimeException("IFS库存件属性新增异常:" + addInventoryPartPropertyResponse.getMsg()); |
|
|
|
if (!propertyList.isEmpty()) { |
|
|
|
String addInventoryPartPropertyURL = apiUrl + "/part/ifs/syncInventoryPartCharacteristics"; |
|
|
|
ResponseData addInventoryPartPropertyResponse = HttpClientUtil.doPostByRawWithPLM(addInventoryPartPropertyURL, propertyList); |
|
|
|
if (!"200".equals(addInventoryPartPropertyResponse.getCode())) { |
|
|
|
throw new RuntimeException("IFS库存件属性新增异常:" + addInventoryPartPropertyResponse.getMsg()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|