理财收益计提报表添加过滤购买日<计提日
This commit is contained in:
		
							parent
							
								
									c6722fb6e1
								
							
						
					
					
						commit
						96e325cc48
					
				|  | @ -72,12 +72,18 @@ public class FinancialListReport extends AbstractReportListDataPlugin implements | ||||||
|         Date filterDate = param.getFilter().getDate("shjh_filterdate"); |         Date filterDate = param.getFilter().getDate("shjh_filterdate"); | ||||||
|         SimpleDateFormat sdf = new SimpleDateFormat("yyyy"); |         SimpleDateFormat sdf = new SimpleDateFormat("yyyy"); | ||||||
|         String filterYear = sdf.format(filterDate); |         String filterYear = sdf.format(filterDate); | ||||||
| 
 |         SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd"); | ||||||
|  |         String filterDateStr = sdf2.format(filterDate); | ||||||
|         // 4. 应用过滤条件 |         // 4. 应用过滤条件 | ||||||
|         mainDataSet = mainDataSet.filter( |         mainDataSet = mainDataSet.filter( | ||||||
|                 "shjh_expiredate IS NULL OR " +  // 保留到期日为空的记录 |                 "shjh_expiredate IS NULL OR " +  // 保留到期日为空的记录 | ||||||
|                         "year(shjh_expiredate) >= " + filterYear  // 计提日年份 <= 到期日年份 |                         "year(shjh_expiredate) >= " + filterYear  // 计提日年份 <= 到期日年份 | ||||||
|         ); |         ); | ||||||
|  | 
 | ||||||
|  |         mainDataSet = mainDataSet.filter( | ||||||
|  |                 "shjh_buydate IS NULL OR " +  // 保留购买日期日为空的记录 | ||||||
|  |                         "shjh_buydate < to_date('" + filterDateStr + "','yyyy-MM-dd') "//购买日<计提日 | ||||||
|  |         ); | ||||||
|         // 3. 查询理财收益预提数据 |         // 3. 查询理财收益预提数据 | ||||||
| //        DataSet addDataSet = QueryServiceHelper.queryDataSet( | //        DataSet addDataSet = QueryServiceHelper.queryDataSet( | ||||||
| //                this.getClass().getName() + "1", | //                this.getClass().getName() + "1", | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue