コード例 #1
0
ファイル: ReportMongoStore.cs プロジェクト: tongxin3267/alabo
        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);
        }
コード例 #2
0
        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);
        }