Пример #1
0
        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 List <AutoReport> GetCountReport(CountReportInput inputParas)
        {
            //标记待更新
            var StartTime = DateTime.Now;
            var EndTime   = DateTime.Now;
            var queryList = QueryList(x => x.CreateTime >= StartTime && x.CreateTime <= EndTime);
            var rsList    = ReportStoreCommons <TEntity, TKey> .GetCountReport(queryList, inputParas);

            return(rsList);
        }
Пример #3
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);
        }