From 11b094294a60019f815835d693f08660d5df3eb2 Mon Sep 17 00:00:00 2001 From: lihao Date: Mon, 20 Oct 2025 20:33:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=95=E6=8D=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/mmpac/pmo/action/PmoToQmsAction.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/mmpac/src/client/nccloud/web/mmpac/pmo/action/PmoToQmsAction.java b/mmpac/src/client/nccloud/web/mmpac/pmo/action/PmoToQmsAction.java index a5b21882..171e1ffd 100644 --- a/mmpac/src/client/nccloud/web/mmpac/pmo/action/PmoToQmsAction.java +++ b/mmpac/src/client/nccloud/web/mmpac/pmo/action/PmoToQmsAction.java @@ -87,6 +87,10 @@ public class PmoToQmsAction implements ICommonAction { if (checkIfOrg(orgCode, configParams)) { continue; } + String billType = vo.getParentVO().getVtrantypecode(); + if (checkBillType(billType, configParams)) { + continue; + } if (vo.getChildrenVO().length >= 0) { if (null != vo.getChildrenVO()[0].getAttributeValue("vdef32") && vo.getChildrenVO()[0].getAttributeValue("vdef32").equals("Y")) { continue; @@ -211,4 +215,17 @@ public class PmoToQmsAction implements ICommonAction { } return true; } + private boolean checkBillType(String code, Map configParams) throws BusinessException { + String targetCode = configParams.get("xbBillType"); + if (targetCode == null || nc.vo.am.common.util.StringUtils.isEmpty(targetCode)) { + throw new BusinessException("未配置单据类型参数"); + } + String[] types = targetCode.split(","); + for (String type : types) { + if (!type.isEmpty() && type.equals(code)) { + return false; + } + } + return true; + } }