From a258761f9a1b02f9eb28487a6ffb1f7b64fee47c Mon Sep 17 00:00:00 2001 From: Rui_Li <877258667@qq.com> Date: Thu, 23 Apr 2026 17:21:37 +0800 Subject: [PATCH] =?UTF-8?q?IFS=20CommGroup3=20=E5=8F=82=E6=95=B0=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=92=8C=E5=92=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring/ifs/bean/InventoryServiceBean.java | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/spring/ifs/bean/InventoryServiceBean.java b/src/main/java/com/spring/ifs/bean/InventoryServiceBean.java index 7d8c2f46..96d03b18 100644 --- a/src/main/java/com/spring/ifs/bean/InventoryServiceBean.java +++ b/src/main/java/com/spring/ifs/bean/InventoryServiceBean.java @@ -1001,22 +1001,29 @@ public class InventoryServiceBean { String contract = inData.getContract(); String partNo = inData.getPartNo(); String commGroup3 = inData.getCommGroup3(); - //获取ifsRowId参数 - Map partMap = InventoryPartApi.getInventoryPartByPartNo(srv, contract, partNo); - //判断是否需要插入到ifs - if(partMap == null || partMap.isEmpty()) { - throw new APException("域:"+contract+"库存件:"+partNo+"不存在!"); + Map returnMap = new HashMap<>(); + try{ + //获取ifsRowId参数 + Map partMap = InventoryPartApi.getInventoryPartByPartNo(srv, contract, partNo); + //判断是否需要插入到ifs + if(partMap == null || partMap.isEmpty()) { + throw new APException("域:"+contract+"库存件:"+partNo+"不存在!"); + } + String ifsRowId = partMap.get("IFSROWID"); + //设置入参信息 + Map inParam = new HashMap<>(); + inParam.put("commGroup3", commGroup3); + inParam.put("ifsRowId", ifsRowId); + Map resultMap = InventoryPartApi.modifyInventoryPartCommGroup3(srv, inParam); + //打印日志 + logger.info("Inventory Part 修改结束:"+JSON.toJSONString(resultMap)); + } catch(APException e){ + returnMap.put("resultCode", "400"); + returnMap.put("resultMsg", e.getMessage()); + logger.info("异常信息:"+e.getMessage()); } - String ifsRowId = partMap.get("IFSROWID"); - //设置入参信息 - Map inParam = new HashMap<>(); - inParam.put("commGroup3", commGroup3); - inParam.put("ifsRowId", ifsRowId); - Map resultMap = InventoryPartApi.modifyInventoryPartCommGroup3(srv, inParam); - //打印日志 - logger.info("Inventory Part 修改结束:"+JSON.toJSONString(resultMap)); //返回结果集 - return resultMap; + return returnMap; }