From 8283c9147e27783977fb17c75d86cf320786eb52 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 3 Jun 2025 13:20:18 +0800 Subject: [PATCH] 2025-06-03 --- .../impl/MasterPartInformationServiceImpl.java | 18 ++++++++++++++++++ .../part/MasterPartInformationMapper.xml | 1 + 2 files changed, 19 insertions(+) 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 b41390f4..993fe436 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 @@ -296,6 +296,22 @@ public class MasterPartInformationServiceImpl extends ServiceImpl addMasterPartModelResponse = technicalClassBean.modifyTechnicalClass(srv, partIfsCatalogModel); + if (!"200".equals(addMasterPartModelResponse.get("resultCode"))) { + throw new RuntimeException("IFS 物料件模板新增异常:" + addMasterPartModelResponse.get("resultMsg")); + } + } } } } @@ -310,10 +326,12 @@ public class MasterPartInformationServiceImpl extends ServiceImpl params = new ArrayList<>(); params.add(partNo); params.add(codeNo); params.add(functionType); + params.add(partMainGroup); // 执行方法 List> resultList = procedureDao.getProcedureData("checkUpdateMasterPart", params); return resultList.get(0); diff --git a/src/main/resources/mapper/part/MasterPartInformationMapper.xml b/src/main/resources/mapper/part/MasterPartInformationMapper.xml index 42a3153e..b402fa71 100644 --- a/src/main/resources/mapper/part/MasterPartInformationMapper.xml +++ b/src/main/resources/mapper/part/MasterPartInformationMapper.xml @@ -10,6 +10,7 @@ um_id, dbo.get_um_name(um_id) as umName, part_main_group, + dbo.get_group_name('*', part_main_group) as groupName, weight_net, uom_for_weight_net, volume_net,