setCollectionInfo(..) -> setPagingInfo(..)

master
mjkhan21 3 months ago
parent ecb182757a
commit cf2f286066

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

Loading…
Cancel
Save