Beispiel #1
0
        public IActionResult List(ListSupportInputModel model)
        {
            DataAccess.TASM_SUPPORT_Da manager = new DataAccess.TASM_SUPPORT_Da();
            SqlSugar.PageModel         p       = new SqlSugar.PageModel();
            p.PageIndex = model.pageindex;
            p.PageSize  = model.pagesize;

            List <SupportModel> list = manager.ListByWhere(model.keywords, ref p, model.WatchType, model.WatchState, model.Uuid);

            return(SuccessResultList(list, p));
        }
Beispiel #2
0
        public IActionResult ListPersonal(ListSupportInputModel model)
        {
            TASM_SUPPORT_PERSONAL_Da da = new TASM_SUPPORT_PERSONAL_Da();

            SqlSugar.PageModel p = new SqlSugar.PageModel();
            p.PageIndex = model.pageindex;
            p.PageSize  = model.pagesize;

            SupprotWatchState state = model.WatchState;
            SupprotWatchType  type  = model.WatchType;

            List <PersonalSupportListModel> list = da.ListByWhere(string.Empty, ref p, type, state, model.Uuid);

            return(SuccessResultList(list, p));
        }