public PagedList <SumReportTable> GetSumReportTable(SumTableInput inputParas) { var queryList = QueryList(x => x.CreateTime >= inputParas.StartTime && x.CreateTime <= inputParas.EndTime); var rsList = ReportStoreCommons <TEntity, TKey> .GetSumReportTable(queryList, inputParas); return(rsList); }
public PagedList <SumReportTable> GetSumReportTable(SumTableInput inputParas) { Expression <Func <TEntity, bool> > predicate = x => x.CreateTime > DateTime.MinValue; if (inputParas.StartTime != null && inputParas.EndTime != null) { predicate = predicate.And(x => x.CreateTime >= inputParas.StartTime); } var queryList = QueryList(predicate); var rsList = ReportStoreCommons <TEntity, TKey> .GetSumReportTable(queryList, inputParas); return(rsList); }