//账户异动 public IPagedList <CustomerAmountRecordExt> GetCustomerAmountRecordPagedList(AmountRecordSearchParam param, out decimal totalInFee, out decimal totalOutFee) { var startTime = param.StartDateTime.HasValue ? param.StartDateTime.Value : new DateTime(2013, 1, 1); var endTime = param.EndDateTime.HasValue ? param.EndDateTime.Value : new DateTime(2020, 1, 1); param.StartDateTime = startTime; param.EndDateTime = endTime; return(_amountRecordRepository.GetCustomerAmountList(param, out totalInFee, out totalOutFee)); }
public IPagedList <CustomerAmountRecordExt> GetCustomerAmountRecordPagedList(AmountRecordSearchParam param, out decimal totalInFee, out decimal totalOutFee) { //Check.Argument.IsNullOrWhiteSpace(param.CustomerCode, "客户编码"); var startTime = param.StartDateTime.HasValue ? param.StartDateTime.Value : new DateTime(2013, 1, 1); var endTime = param.EndDateTime.HasValue ? param.EndDateTime.Value : new DateTime(2020, 1, 1); param.StartDateTime = startTime; param.EndDateTime = endTime; return(_customerAmountRecordRepository.GetCustomerAmountList(param, out totalInFee, out totalOutFee)); //Expression<Func<CustomerAmountRecord, bool>> filter = p => true; //filter = filter.AndIf(p => p.CustomerCode == param.CustomerCode, !string.IsNullOrWhiteSpace(param.CustomerCode)) // .And(p => p.CreatedOn >= startTime && p.CreatedOn <= endTime); //Func<IQueryable<CustomerAmountRecord>, IOrderedQueryable<CustomerAmountRecord>> // orderBy = o => o.OrderBy(p => p.CreatedOn); //return _customerAmountRecordRepository.FindPagedList(param.Page, param.PageSize, filter, orderBy); }