Exemplo n.º 1
0
        private List <TotalEntity> GetStatisList()
        {
            BLL.daikuan bll       = new BLL.daikuan();
            BLL.member  memberBll = new BLL.member();
            //已通过贷款数量
            var daikuanCount = bll.GetRecordCount(" status=1");
            //会员数量
            var memberCount = memberBll.GetRecordCount("");
            //新增会员数量
            var newMemberCount = memberBll.GetRecordCount(" add_time>='" + DateTime.Now.Date + "'");
            var exitCount      = memberBll.GetRecordCount(" is_delete=1");
            var list           = new List <TotalEntity>()
            {
                new TotalEntity()
                {
                    DaikuanCount = daikuanCount, MemberCount = memberCount, NewMemCount = newMemberCount, ExitCount = exitCount
                }
            };

            return(list);
        }