付款处理列表过滤导致现金存取、同名转账报错修复
This commit is contained in:
		
							parent
							
								
									62b854f1a3
								
							
						
					
					
						commit
						745adf2b06
					
				|  | @ -30,22 +30,31 @@ public class PayBillListPlugin extends AbstractListPlugin implements Plugin { | ||||||
|         if (!"cas_apphome_grid".equals(listShowParameter.getParentFormId())) { |         if (!"cas_apphome_grid".equals(listShowParameter.getParentFormId())) { | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|         List<QFilter> qFilters = e.getQFilters(); |         List<QFilter> qFilters = null; | ||||||
|         HashSet<Long> value = new HashSet<>(); |         HashSet<Long> value = null; | ||||||
|         for (QFilter qFilter : qFilters) { |         try { | ||||||
|             if (qFilter.toString().contains("billtype")) { |             qFilters = e.getQFilters(); | ||||||
|                 List<QFilter.QFilterNest> nests = qFilter.getNests(true); |             value = new HashSet<>(); | ||||||
|                 for (QFilter.QFilterNest nest : nests) { |             for (QFilter qFilter : qFilters) { | ||||||
|                     String string1 = nest.toString(); |                 if (qFilter.toString().contains("billtype")) { | ||||||
|                     if (string1.contains("billtype")) { |                     List<QFilter.QFilterNest> nests = qFilter.getNests(true); | ||||||
|                         value = (HashSet<Long>)nest.getFilter().getValue(); |                     for (QFilter.QFilterNest nest : nests) { | ||||||
|                         value.add(993266082510901248L); |                         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); | ||||||
|  |                         } | ||||||
|                     } |                     } | ||||||
|  |                     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')); |         qFilters.add(new QFilter("billtype", QCP.in, value).and("iswaitsche", QCP.equals, '0')); | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue