日期:2014-05-17 浏览次数:20810 次
public ModelAndView showUser(){
List<User> userlist = userService.getList(pageSize,currentPage);
ModelAndView model = new ModelAndView("right","userlist",userlist);
Long count = userService.getCount();
int totalPage = (int) (count%pageSize==0?count/pageSize:(count/pageSize)+1);
model.addObject("totalPage", totalPage);
model.addObject("currentPage", currentPage);
List<Message> messagelist = messageService.getList();
model.addObject("messagelist",messagelist);
return model;