系统登录改造:登录重复用户提示优化

This commit is contained in:
gaoqr
2024-08-28 11:52:52 +08:00
parent 0564f4a7a0
commit 619b14bc00
2 changed files with 2 additions and 2 deletions
@@ -49,7 +49,7 @@ public interface AdminUserMapper extends BaseMapperX<AdminUserDO> {
.eq(AdminUserDO::getUsername, userName));
if (CollectionUtil.isNotEmpty(adminUserDOS)) {
if (adminUserDOS.size() > 1) {
ServiceExceptionUtil.exception(USERNAME_MULTIPLE_ERROR, userName);
throw ServiceExceptionUtil.exception(USERNAME_MULTIPLE_ERROR, userName);
}
adminUserDO = adminUserDOS.get(0);
}