package com.ldu.controller; import com.ldu.pojo.User; import com.ldu.service.UserService; import com.ldu.util.UserGrid; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.util.List; /** * Created by lenovo on 2017/5/9. */ @Controller public class MainController { @Resource private UserService userService; /*查找所有用户*/ @RequestMapping(value = "/userList") @ResponseBody public UserGrid getUserList(@RequestParam("current") int current, @RequestParam("rowCount") int rowCount) { int total = userService.getUserNum(); List<User> list = userService.getPageUser(current, rowCount); UserGrid userGrid = new UserGrid(); userGrid.setCurrent(current); userGrid.setRowCount(rowCount); userGrid.setRows(list); userGrid.setTotal(total); return userGrid; } }
最近下载更多
玖零定制问题修复 LV34
4月4日
mili59 LV1
2月26日
wangsheng818 LV4
2月20日
爽朗的凯 LV2
2023年12月20日
jushi001 LV2
2023年12月18日
仙女山的月亮 LV2
2023年11月27日
Gunala LV2
2023年10月28日
3263394665 LV9
2023年10月27日
四十四十 LV3
2023年10月25日
peanut_666 LV1
2023年9月11日