From 3c06f08c9b01538e2498a697bd7fb6cd4e7880a1 Mon Sep 17 00:00:00 2001 From: pan-houxiang <2663608154@qq.com> Date: Fri, 5 Dec 2025 13:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E5=BB=BA=E8=AE=AE=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E4=B8=8B=E6=8E=A8=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=8F=AA=E8=83=BD=E9=80=89=E5=90=8C=E4=B8=80=E4=B8=AA=E7=BB=84?= =?UTF-8?q?=E7=BB=87(=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BAset)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/pm/PurSuggestRptFromPlugin.java | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/lc123/cloud/app/plugin/form/pm/PurSuggestRptFromPlugin.java b/lc123/cloud/app/plugin/form/pm/PurSuggestRptFromPlugin.java index 0e43d9a..c95e644 100644 --- a/lc123/cloud/app/plugin/form/pm/PurSuggestRptFromPlugin.java +++ b/lc123/cloud/app/plugin/form/pm/PurSuggestRptFromPlugin.java @@ -397,7 +397,7 @@ public class PurSuggestRptFromPlugin extends AbstractFormPlugin implements Plugi this.getView().showMessage("请先进行查询操作"); return; } - ArrayList ids = new ArrayList<>(); + HashSet ids = new HashSet<>(); for (int i = 0; i < tqq9_pursuggestrptentry.size(); i++) { Boolean isChange = tqq9_pursuggestrptentry.get(i).getBoolean("tqq9_ischange"); if (isChange) { @@ -405,15 +405,10 @@ public class PurSuggestRptFromPlugin extends AbstractFormPlugin implements Plugi ids.add(org.getLong("id")); } } - if (ids.size() != 0) { + if (ids.size() > 1) { //判断组织id是否全部一致 - Long id = ids.get(0); - for (int i = 1; i < ids.size(); i++) { - if (!id.equals(ids.get(i))) { - this.getView().showErrorNotification("请选择业务归属一致的明细行"); - return; - } - } + this.getView().showErrorNotification("请选择业务归属一致的明细行"); + return; } BillShowParameter param = new BillShowParameter(); param.setFormId("pm_purorderbill"); @@ -422,9 +417,6 @@ public class PurSuggestRptFromPlugin extends AbstractFormPlugin implements Plugi param.getOpenStyle().setShowType(ShowType.Modal); this.getView().showForm(param); } - } - - } -} \ No newline at end of file +}