guns icon indicating copy to clipboard operation
guns copied to clipboard

用户管理界面用户记录问题

Open jet0605 opened this issue 6 years ago • 1 comments

作者你好,为什么用户管理界面显示的用户拥有只显示当前用户本身一个人啊。

jet0605 avatar Aug 17 '18 07:08 jet0605

这个UserMgrController类的list函数 作者写的有问题啊 原作者是这么写的 /** * 查询管理员列表 */ @RequestMapping("/list") @Permission @ResponseBody public Object list(@RequestParam(required = false) String name, @RequestParam(required = false) String beginTime, @RequestParam(required = false) String endTime, @RequestParam(required = false) Integer deptid) { if (ShiroKit.isAdmin()) { List<Map<String, Object>> users = userService.selectUsers(null, name, beginTime, endTime, deptid); return new UserWarpper(users).warp(); } else { DataScope dataScope = new DataScope(ShiroKit.getDeptDataScope()); List<Map<String, Object>> users = userService.selectUsers(dataScope, name, beginTime, endTime, deptid); return new UserWarpper(users).warp(); } } 将userService替换成userMapper运行正确

jet0605 avatar Aug 17 '18 09:08 jet0605