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 0b4b1371..7cdeec45 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 @@ -934,6 +934,13 @@ public class PartInformationServiceImpl extends ServiceImpl modifyCommGroup3Response = inventoryServiceBean.modifyInventoryPartCommGroup3(srv, partIfsInventory); + if (!"200".equals(modifyCommGroup3Response.get("resultCode"))) { + throw new RuntimeException("ifs 库存件CommGroup3修改异常信息:" + modifyCommGroup3Response.get("resultMsg")); + } + } if (data.getCostsInfoFlag()) { PartIfsInventoryConfig partIfsInventoryConfig = getPartIfsInventoryConfig(data); // costs对象 // 同步Costs表数据 @@ -3062,6 +3069,11 @@ public class PartInformationServiceImpl extends ServiceImpl modifyCommGroup3Response = inventoryServiceBean.modifyInventoryPartCommGroup3(srv, partIfsInventory); + if (!"200".equals(modifyCommGroup3Response.get("resultCode"))) { + throw new RuntimeException("IFS库存件CommGroup3修改异常:" + modifyCommGroup3Response.get("resultMsg")); + } } // 创建 IFS 物料的 BOM 和 Routing @@ -3795,6 +3807,11 @@ public class PartInformationServiceImpl extends ServiceImpl modifyCommGroup3Response = inventoryServiceBean.modifyInventoryPartCommGroup3(srv, partIfsInventory); + if (!"200".equals(modifyCommGroup3Response.get("resultCode"))) { + throw new RuntimeException("IFS库存件CommGroup3修改异常:" + modifyCommGroup3Response.get("resultMsg")); + } } } catch (Exception e) { // 删除库存件关联信息 diff --git a/src/main/java/com/spring/modules/part/vo/PartInformationVo.java b/src/main/java/com/spring/modules/part/vo/PartInformationVo.java index 698d4b53..99d254c0 100644 --- a/src/main/java/com/spring/modules/part/vo/PartInformationVo.java +++ b/src/main/java/com/spring/modules/part/vo/PartInformationVo.java @@ -175,6 +175,7 @@ public class PartInformationVo extends PartInformationEntity { private String ifHasPeifang; private String ifHasBom; private Boolean mainInfoFlag; + private Boolean commGroup3InfoFlag; private Boolean costsInfoFlag; private Boolean manufacturingInfoFlag; private Boolean planningInfoFlag;