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')); }