登录名不区分大小写

This commit is contained in:
曹鹏飞 2025-09-24 09:50:44 +08:00
parent f999fae1e5
commit 7cc07aac8b
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
@Override
public User getByCode(String code) {
return lambdaQuery().eq(User::getUserCode, code).one();
return lambdaQuery().apply("LOWER(user_code) = LOWER({0})", code).one();
}
@Transactional