Exemple #1
0
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="queryPager_Book_User"></param>
        /// <returns></returns>
        public Models.Response.PageResult GetByPage(QueryPager_Book_User_Consume queryPager_Book_User)
        {
            //查询表达式
            var exp = Cat.M.Book.Services.Helper.ExpressionHelper.GetExpressionByQueryPager <QueryPager_Book_User_Consume, Book_User_Consume>(queryPager_Book_User);
            //排序
            IList <OrderBy> listOrderBy = new List <OrderBy>();

            if (!string.IsNullOrEmpty(queryPager_Book_User.sorter))
            {
                listOrderBy.Add(new OrderBy()
                {
                    Order = queryPager_Book_User.order, Sort = queryPager_Book_User.sort
                });
            }

            return(base.GetByPage(queryPager_Book_User.pn, queryPager_Book_User.ps, exp, listOrderBy));
        }
Exemple #2
0
        /// <summary>
        /// 获取用户消费喵币记录
        /// </summary>
        /// <param name="requestParams"></param>
        /// <returns></returns>
        public ActionRes GetListByPage(QueryPager_Book_User_Consume requestParams)
        {
            var pageResult = AllServices.BookUserConsumeService.GetByPage(requestParams);

            return(ActionRes.Success(pageResult));
        }