public JsonResult GetAllUser() { string keyword = RequestHelper.FilterParam(Request.QueryString["keyword"]); int page = RequestHelper.GetQueryValueOrNull <int>("page"); int limit = RequestHelper.GetQueryValueOrNull <int>("limit"); string strwhere = string.Empty; if (!string.IsNullOrEmpty(keyword)) { strwhere += " and (dname like '%" + keyword + "%' or dcode like '%" + keyword + "%' )"; } var result = ISysUserService.GetPageData(strwhere, page, limit); return(new CustomerJsonResult(new ResponseResultDataList { code = ResponseHelper.ESUCCESSCODE, msg = "请求成功", data = result.Items, count = result.TotalNum })); }