fix: sql error

This commit is contained in:
2024-02-23 10:51:46 +08:00
parent dd9fa4b28b
commit 66f6b0787b
3 changed files with 5 additions and 4 deletions

View File

@@ -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";
}

View File

@@ -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();