From a420962c45b868d4e0ff6d0611c4a6e976e89cde Mon Sep 17 00:00:00 2001 From: lihao Date: Wed, 15 Oct 2025 18:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AfterApproveSyncHighpressureMesRule.java | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/mmpac/src/private/nc/bs/mmpac/pmo/pac0002/bp/rule/AfterApproveSyncHighpressureMesRule.java b/mmpac/src/private/nc/bs/mmpac/pmo/pac0002/bp/rule/AfterApproveSyncHighpressureMesRule.java index f33b97c0..4efebd0d 100644 --- a/mmpac/src/private/nc/bs/mmpac/pmo/pac0002/bp/rule/AfterApproveSyncHighpressureMesRule.java +++ b/mmpac/src/private/nc/bs/mmpac/pmo/pac0002/bp/rule/AfterApproveSyncHighpressureMesRule.java @@ -115,9 +115,9 @@ public class AfterApproveSyncHighpressureMesRule implements IRule { itemObj.put("contractNum",contractNum ); // 销售订单号 - Object cwarehouseid = hybo.findColValue("bd_stordoc", "code", " (pk_stordoc = '" + item.getAttributeValue("vbdef35") + "') "); + Object cwarehouseid = hybo.findColValue("bd_stordoc", "code", " (pk_stordoc = '" + item.getAttributeValue("vdef31") + "') "); - itemObj.put("cwarehouseid", cwarehouseid); // 合同编号 + itemObj.put("cwarehouseid", cwarehouseid); // 仓库编码 Object pk_project = hybo.findColValue("bd_project", "project_name", " pk_project = '" + item.getCprojectid() + "' "); itemObj.put("entryName", pk_project); // 项目名称 @@ -132,10 +132,10 @@ public class AfterApproveSyncHighpressureMesRule implements IRule { // 日期信息 itemObj.put("requiredDate", item.getTrequiredate().toString()); // 需用日期 - if("55A2".equals(item.getVsrctype())){ + // if("55A2".equals(item.getVsrctype())){ itemObj.put("bipParentProcessProductionOrderId", item.getVparentbillcode()); itemObj.put("bipParentProcessProductionOrderRowNum", item.getVparentmorowno()); - } + // } if("55A2".equals(item.getVfirsttype())){ itemObj.put("bipOriginProcessProductionOrderId", item.getVfirstcode()); itemObj.put("bipOriginProcessProductionOrderRowNum", item.getVfirstrowno()); @@ -182,6 +182,9 @@ public class AfterApproveSyncHighpressureMesRule implements IRule { itemObj.put("contractNum", contractNum); // 合同编号 // itemObj.put("cwarehouseid", item.getAttributeValue("vbdef35")); // 仓库编号 + Object cwarehouseid = hybo.findColValue("bd_stordoc", "code", " (pk_stordoc = '" + item.getAttributeValue("vdef31") + "') "); + + itemObj.put("cwarehouseid", cwarehouseid); // 仓库编码 Object pk_project = hybo.findColValue("bd_project", "project_name", " pk_project = '" + item.getCprojectid() + "' "); itemObj.put("entryName", pk_project); // 项目名称 @@ -195,10 +198,12 @@ public class AfterApproveSyncHighpressureMesRule implements IRule { // 日期信息 itemObj.put("requiredDate", item.getTrequiredate().toString()); // 需用日期 - if("55A2".equals(item.getVsrctype())){ - itemObj.put("bipParentProcessProductionOrderId", item.getVparentbillcode()); - itemObj.put("bipParentProcessProductionOrderRowNum", item.getVparentmorowno()); - } + // if("55A2".equals(item.getVsrctype())){ + // itemObj.put("bipParentProcessProductionOrderId", item.getVparentbillcode()); + // itemObj.put("bipParentProcessProductionOrderRowNum", item.getVparentmorowno()); + // } + itemObj.put("bipParentProcessProductionOrderId", item.getVparentbillcode()); + itemObj.put("bipParentProcessProductionOrderRowNum", item.getVparentmorowno()); if("55A2".equals(item.getVfirsttype())){ itemObj.put("bipOriginProcessProductionOrderId", item.getVfirstcode()); itemObj.put("bipOriginProcessProductionOrderRowNum", item.getVfirstrowno());