@RequestMapping(value="/user/queryList", method=RequestMethod.POST) @ResponseBody public Map<String, Object> queryList(int offset, int limit){ Map<String, Object> map = new HashMap<>(); List userList = userService.queryList(offset, limit); int total = userService.queryTotal(); map.put("total", total); map.put("rows", userList); return map; }

@RequestMapping(value="/user/queryCondition", method=RequestMethod.POST) @ResponseBody public Map<String, Object> queryCondition(int offset, int limit, String email, String nickName, String createDate, int userState){ Map<String, Object> map = new HashMap<>(); List userList = userService.queryCondition(offset, limit, email, nickName, createDate, userState); int total = userService.queryConditionTotal(email, nickName, createDate, userState); map.put("total", total); map.put("rows", userList); return map; }

page language=java contentType=texthtml; charset=UTF-8 pageEncoding=UTF-8 taglib prefix=shiro uri=httpshiroapacheorgtags htmlhead meta charset=utf-8 meta name=viewport content=width=device-wi

原文地址: http://www.cveoy.top/t/topic/bmza 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录