setCollectionInfo(..) 원복

master
mjkhan21 3 months ago
parent cf2f286066
commit dd53900fbc

@ -43,8 +43,7 @@ public class UserController<U extends User> extends AbstractController {
ModelAndView mav = getUserList(new UserQuery().setPageNum(1)); ModelAndView mav = getUserList(new UserQuery().setPageNum(1));
mav.setViewName("base/user/user-main"); mav.setViewName("base/user/user-main");
return mav return mav
.addObject("userList", toJson(mav.getModel().get("userList"))) .addObject("userList", toJson(mav.getModel().get("userList")));
.addObject("userPaging", toJson(mav.getModel().get("userPaging")));
} }
/** .<br /> /** .<br />
@ -61,7 +60,7 @@ public class UserController<U extends User> extends AbstractController {
@RequestMapping(name="사용자 조회", value="/list.do") @RequestMapping(name="사용자 조회", value="/list.do")
public ModelAndView getUserList(UserQuery req) { public ModelAndView getUserList(UserQuery req) {
List<?> result = userService.getUserList(setFetchSize(req)); List<?> result = userService.getUserList(setFetchSize(req));
return setPagingInfo(new ModelAndView("jsonView"), result, "user"); return setCollectionInfo(new ModelAndView("jsonView"), result, "user");
} }
/** . /** .

Loading…
Cancel
Save