登录名不区分大小写
This commit is contained in:
parent
f999fae1e5
commit
7cc07aac8b
|
|
@ -39,7 +39,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public User getByCode(String code) {
|
public User getByCode(String code) {
|
||||||
return lambdaQuery().eq(User::getUserCode, code).one();
|
return lambdaQuery().apply("LOWER(user_code) = LOWER({0})", code).one();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue