|
|
|
@ -959,11 +959,19 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
if (!"200".equals(deleteInventoryPartPropertyResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("IFS库存件属性删除异常:" + deleteInventoryPartPropertyResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
log.info("savePartItemInfo2 - ifsProperty size: {} contents: {}", ifsProperty.size(), JSON.toJSONString(ifsProperty)); |
|
|
|
if (!ifsProperty.isEmpty()) { |
|
|
|
log.info("开始同步物料属性到IFS,共 {} 条数据...", ifsProperty.size()); |
|
|
|
long startTime = System.currentTimeMillis(); |
|
|
|
Map<String, String> addInventoryPartPropertyResponse = inventoryServiceBean.syncInventoryPartCharacteristics(srv, ifsProperty); |
|
|
|
long endTime = System.currentTimeMillis(); |
|
|
|
log.info("物料属性同步完成,耗时: {} ms", (endTime - startTime)); |
|
|
|
if (!"200".equals(addInventoryPartPropertyResponse.get("resultCode"))) { |
|
|
|
throw new RuntimeException("IFS库存件属性新增异常:" + addInventoryPartPropertyResponse.get("resultMsg")); |
|
|
|
} |
|
|
|
log.info("物料属性同步成功"); |
|
|
|
} else { |
|
|
|
log.info("ifsProperty 为空,跳过物料属性同步"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1094,6 +1102,7 @@ public class PartInformationServiceImpl extends ServiceImpl<PartInformationMappe |
|
|
|
property.setCharacteristicType("N".equals(itemDate.getValueTypeDb()) ? "Numeric" : "T".equals(itemDate.getValueTypeDb()) ? "Alpha" : ""); |
|
|
|
ifsProperty.add(property); |
|
|
|
} |
|
|
|
log.info("savePartItemInfo2 - ifsProperty size: {} contents: {}", ifsProperty.size(), JSON.toJSONString(ifsProperty)); |
|
|
|
return ifsProperty; |
|
|
|
} |
|
|
|
|
|
|
|
|