Ejemplo n.º 1
0
        public async Task <BaseResultModel <Models.Entity.Student> > GetPageStudentsAsync(int pageIndex, int pageSize, Dictionary <string, string> sortDic, StudentSearch search)
        {
            Expression <Func <Models.Entity.Student, bool> > expression = null;

            if (null != search)
            {
                Models.Entity.Student student = new Models.Entity.Student();
                where.Equal("FirstName", search.Name, "and");
                where.LessThanOrEqual(nameof(student.Birthday), search.Birthday, "and");
                expression = where.GetExpression();
            }
            return(await service.GetPageListAsync(pageIndex, pageSize, sortDic, expression));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 分页获取管理岗位人员考勤数据[异步]
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="sortDic"></param>
        /// <param name="searchDic"></param>
        /// <returns></returns>
        public async Task <BaseResultModel <ManagePostHistoryAtt> > GetPageManagePostAtt(int pageIndex, int pageSize, Dictionary <string, string> sortDic, Dictionary <string, string> searchDic)
        {
            Expression <Func <ManagePostHistoryAtt, bool> > expression = whereHelper.GetExpression(searchDic);

            return(await service.GetPageListAsync(pageIndex, pageSize, sortDic, expression));
        }