付款处理列表过滤导致现金存取、同名转账报错修复

This commit is contained in:
李贵强 2025-08-13 17:01:48 +08:00
parent 62b854f1a3
commit 745adf2b06
1 changed files with 22 additions and 13 deletions

View File

@ -30,15 +30,21 @@ public class PayBillListPlugin extends AbstractListPlugin implements Plugin {
if (!"cas_apphome_grid".equals(listShowParameter.getParentFormId())) {
return;
}
List<QFilter> qFilters = e.getQFilters();
HashSet<Long> value = new HashSet<>();
List<QFilter> qFilters = null;
HashSet<Long> value = null;
try {
qFilters = e.getQFilters();
value = new HashSet<>();
for (QFilter qFilter : qFilters) {
if (qFilter.toString().contains("billtype")) {
List<QFilter.QFilterNest> 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<Long>)nest.getFilter().getValue();
}
value.add(993266082510901248L);
}
}
@ -47,6 +53,9 @@ public class PayBillListPlugin extends AbstractListPlugin implements Plugin {
break;
}
}
} catch (Exception ex) {
throw new RuntimeException(ex);
}
qFilters.add(new QFilter("billtype", QCP.in, value).and("iswaitsche", QCP.equals, '0'));
}