fix: sql error
This commit is contained in:
@@ -9,5 +9,6 @@ package com.landaiqing.auth.domain.constants;
|
||||
public class AuthConstant {
|
||||
|
||||
public static final String NORMAL_USER = "normal_user";
|
||||
public static final String ADMIN = "admin";
|
||||
|
||||
}
|
||||
|
@@ -76,7 +76,7 @@ public class AuthUserDomainServiceImpl implements AuthUserDomainService {
|
||||
|
||||
// 用户和角色关联
|
||||
AuthRole authRole=new AuthRole();
|
||||
authRole.setRoleKey(AuthConstant.NORMAL_USER);
|
||||
authRole.setRoleKey(AuthConstant.ADMIN);
|
||||
AuthRole roleResult = authRoleService.queryByCondition(authRole);
|
||||
Long roleId = roleResult.getId();
|
||||
Long userId = authUser.getId();
|
||||
|
Reference in New Issue
Block a user