diff --git a/src/main/java/com/spring/modules/part/service/impl/MasterPartInformationServiceImpl.java b/src/main/java/com/spring/modules/part/service/impl/MasterPartInformationServiceImpl.java index c5a77985..123ee248 100644 --- a/src/main/java/com/spring/modules/part/service/impl/MasterPartInformationServiceImpl.java +++ b/src/main/java/com/spring/modules/part/service/impl/MasterPartInformationServiceImpl.java @@ -368,7 +368,7 @@ public class MasterPartInformationServiceImpl extends ServiceImpl addMasterPartPropertyResponse = technicalClassBean.syncTechnicalClass(srv, ifsProperty); -// if (!"200".equals(addMasterPartPropertyResponse.get("resultCode"))) { -// throw new RuntimeException("IFS物料属性新增异常:" + addMasterPartPropertyResponse.get("resultMsg")); -// } -// } -// } } /** @@ -517,14 +508,14 @@ public class MasterPartInformationServiceImpl extends ServiceImpl deleteMasterPartPropertyResponse = technicalClassBean.removeTechnicalClass(srv, ifsProperty); -// if (!"200".equals(deleteMasterPartPropertyResponse.get("resultCode"))) { -// throw new RuntimeException("IFS物料属性删除异常:" + deleteMasterPartPropertyResponse.get("resultMsg")); -// } -// } -// } + if (dataUrl && "Y".equals(partData.getOfficialFlag())) { + if (!ifsProperty.isEmpty()) { + Map deleteMasterPartPropertyResponse = technicalClassBean.removeTechnicalClassAttributes(srv, ifsProperty); + if (!"200".equals(deleteMasterPartPropertyResponse.get("resultCode"))) { + throw new RuntimeException("IFS物料属性删除异常:" + deleteMasterPartPropertyResponse.get("resultMsg")); + } + } + } } /** diff --git a/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java b/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java index 5b308ac7..d16bfa3c 100644 --- a/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java +++ b/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java @@ -3719,7 +3719,7 @@ public class PartInformationServiceImpl extends ServiceImpl