银行余额汇总报表报错
This commit is contained in:
		
							parent
							
								
									08e591b4fc
								
							
						
					
					
						commit
						304d6c39cd
					
				|  | @ -94,9 +94,9 @@ public class BankBalanceSummaryFormPlugin extends AbstractReportFormPlugin imple | |||
|      * @param type 日期类型 | ||||
|      */ | ||||
|     private void setBenchmarkamount(QFilter qFilter,DynamicObjectCollection rowData,Boolean isShare,String type){ | ||||
|         // 被动付款入账_(交易日期,余额,账号id,公司属性) | ||||
|         DynamicObject[] bei_intelpay1 = BusinessDataServiceHelper.load(BEI_INTELPAY,"biztime," + | ||||
|                 "transbalance,accountbank,company.shjh_isshare", new QFilter[]{qFilter}, null); | ||||
|         // 余额表 | ||||
|         DynamicObject[] bei_intelpay1 = BusinessDataServiceHelper.load(BEI_INTELPAY,"bizdate," + | ||||
|                 "amount,accountbank,company.shjh_isshare", new QFilter[]{qFilter}, null); | ||||
| 
 | ||||
|         // 按银行账户id分组 | ||||
|         Map<Long, List<DynamicObject>> map = new HashMap<>(); | ||||
|  | @ -127,7 +127,7 @@ public class BankBalanceSummaryFormPlugin extends AbstractReportFormPlugin imple | |||
|             DynamicObject maxDateObject = null; | ||||
|             Date maxDate = null; | ||||
|             for (DynamicObject dynamicObject : list) { | ||||
|                 Date biztime = dynamicObject.getDate("biztime"); | ||||
|                 Date biztime = dynamicObject.getDate("bizdate"); | ||||
|                 if (maxDate == null || biztime.after(maxDate)) { | ||||
|                     maxDate = biztime; | ||||
|                     maxDateObject = dynamicObject; | ||||
|  | @ -143,7 +143,7 @@ public class BankBalanceSummaryFormPlugin extends AbstractReportFormPlugin imple | |||
|         for (Map.Entry<Long, DynamicObject> entry : newMap.entrySet()) { | ||||
|             DynamicObject value = entry.getValue(); | ||||
|             if (null != value) { | ||||
|                 BigDecimal transbalance = value.getBigDecimal("transbalance"); | ||||
|                 BigDecimal transbalance = value.getBigDecimal("amount"); | ||||
|                 if (transbalance != null) { | ||||
|                     total = total.add(transbalance); | ||||
|                 } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue