From 1ff8d9268a40b1b6b7f45d182298e619cacf6add Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Fri, 24 Apr 2026 13:39:01 +0800 Subject: [PATCH] =?UTF-8?q?2026-04-24=20CommGroup3=20=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/PartInformationServiceImpl.java | 17 +++++++++++++++++ .../modules/part/vo/PartInformationVo.java | 1 + 2 files changed, 18 insertions(+) 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;