From 745adf2b06c545405de6d6e4e1abd2a7cf8964d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Wed, 13 Aug 2025 17:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E5=A4=84=E7=90=86=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=BF=87=E6=BB=A4=E5=AF=BC=E8=87=B4=E7=8E=B0=E9=87=91?= =?UTF-8?q?=E5=AD=98=E5=8F=96=E3=80=81=E5=90=8C=E5=90=8D=E8=BD=AC=E8=B4=A6?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fi/fi/plugin/form/PayBillListPlugin.java | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/main/java/shjh/jhzj7/fi/fi/plugin/form/PayBillListPlugin.java b/main/java/shjh/jhzj7/fi/fi/plugin/form/PayBillListPlugin.java index 010329e..fdda68a 100644 --- a/main/java/shjh/jhzj7/fi/fi/plugin/form/PayBillListPlugin.java +++ b/main/java/shjh/jhzj7/fi/fi/plugin/form/PayBillListPlugin.java @@ -30,22 +30,31 @@ public class PayBillListPlugin extends AbstractListPlugin implements Plugin { if (!"cas_apphome_grid".equals(listShowParameter.getParentFormId())) { return; } - List qFilters = e.getQFilters(); - HashSet value = new HashSet<>(); - for (QFilter qFilter : qFilters) { - if (qFilter.toString().contains("billtype")) { - List nests = qFilter.getNests(true); - for (QFilter.QFilterNest nest : nests) { - String string1 = nest.toString(); - if (string1.contains("billtype")) { - value = (HashSet)nest.getFilter().getValue(); - value.add(993266082510901248L); + List qFilters = null; + HashSet value = null; + try { + qFilters = e.getQFilters(); + value = new HashSet<>(); + for (QFilter qFilter : qFilters) { + if (qFilter.toString().contains("billtype")) { + List nests = qFilter.getNests(true); + for (QFilter.QFilterNest nest : nests) { + String string1 = nest.toString(); + if (string1.contains("billtype")) { + Class aClass = nest.getFilter().getValue().getClass(); + if (!aClass.getName().equals("java.lang.Long")){ + value = (HashSet)nest.getFilter().getValue(); + } + value.add(993266082510901248L); + } } + nests.clear(); + qFilters.remove(qFilter); + break; } - nests.clear(); - qFilters.remove(qFilter); - break; } + } catch (Exception ex) { + throw new RuntimeException(ex); } qFilters.add(new QFilter("billtype", QCP.in, value).and("iswaitsche", QCP.equals, '0')); }