付款处理列表过滤导致现金存取、同名转账报错修复
This commit is contained in:
		
							parent
							
								
									62b854f1a3
								
							
						
					
					
						commit
						745adf2b06
					
				|  | @ -30,15 +30,21 @@ 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; | ||||||
|  |         try { | ||||||
|  |             qFilters = e.getQFilters(); | ||||||
|  |             value = new HashSet<>(); | ||||||
|             for (QFilter qFilter : qFilters) { |             for (QFilter qFilter : qFilters) { | ||||||
|                 if (qFilter.toString().contains("billtype")) { |                 if (qFilter.toString().contains("billtype")) { | ||||||
|                     List<QFilter.QFilterNest> nests = qFilter.getNests(true); |                     List<QFilter.QFilterNest> nests = qFilter.getNests(true); | ||||||
|                     for (QFilter.QFilterNest nest : nests) { |                     for (QFilter.QFilterNest nest : nests) { | ||||||
|                         String string1 = nest.toString(); |                         String string1 = nest.toString(); | ||||||
|                         if (string1.contains("billtype")) { |                         if (string1.contains("billtype")) { | ||||||
|  |                             Class<?> aClass = nest.getFilter().getValue().getClass(); | ||||||
|  |                             if (!aClass.getName().equals("java.lang.Long")){ | ||||||
|                                 value = (HashSet<Long>)nest.getFilter().getValue(); |                                 value = (HashSet<Long>)nest.getFilter().getValue(); | ||||||
|  |                             } | ||||||
|                             value.add(993266082510901248L); |                             value.add(993266082510901248L); | ||||||
|                         } |                         } | ||||||
|                     } |                     } | ||||||
|  | @ -47,6 +53,9 @@ public class PayBillListPlugin extends AbstractListPlugin implements Plugin { | ||||||
|                     break; |                     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