|
|
@@ -43,7 +43,7 @@ public class UserPageController {
|
|
|
Page<UserVO> page;
|
|
|
PageList<UserVO> pageList;
|
|
|
if (nickname != null) {
|
|
|
- List<UserVO> list = userQuery.queryByMatchNickname(nickname);
|
|
|
+ List<UserVO> list = userQuery.getByMatchNickname(nickname);
|
|
|
page = new PageImpl<>(list);
|
|
|
pageList = PageList.pageList(page);
|
|
|
} else {
|
|
|
@@ -60,7 +60,7 @@ public class UserPageController {
|
|
|
@ApiOperation(value = "新增用户页面")
|
|
|
@GetMapping("/add")
|
|
|
public String addUserPage(Model model) {
|
|
|
- Set<Role> allRoles = roleQuery.getAllRoles();
|
|
|
+ Set<Role> allRoles = roleQuery.findAll();
|
|
|
Set<Role> userRoles = Collections.emptySet();
|
|
|
|
|
|
model.addAttribute("allRoles", allRoles);
|
|
|
@@ -71,7 +71,7 @@ public class UserPageController {
|
|
|
@ApiOperation(value = "用户信息编辑页面")
|
|
|
@GetMapping("/edit/{id}")
|
|
|
public String editUserPage(@PathVariable("id") User user, Model model) {
|
|
|
- Set<Role> allRoles = roleQuery.getAllRoles();
|
|
|
+ Set<Role> allRoles = roleQuery.findAll();
|
|
|
Set<Role> userRoles = userQuery.getUserRoles(user);
|
|
|
|
|
|
model.addAttribute("allRoles", allRoles);
|
|
|
@@ -102,7 +102,7 @@ public class UserPageController {
|
|
|
@ApiOperation(value = "用户角色分配页面")
|
|
|
@GetMapping("/role/{id}")
|
|
|
public String assignRolePage(@PathVariable("id") User user, Model model) {
|
|
|
- Set<Role> roles = roleQuery.getAllRoles();
|
|
|
+ Set<Role> roles = roleQuery.findAll();
|
|
|
int userId = user.getId();
|
|
|
Set<Role> authRoles = userQuery.getUserRoles(userId);
|
|
|
|