fix 因like而导致账号信息寻找错误的bug
This commit is contained in:
parent
ef39341f86
commit
4d0d3933c4
|
|
@ -111,8 +111,8 @@ public class LoginServiceImpl implements ILoginService {
|
|||
if (loginPwdValidate.getScene().equals(LoginEnum.ACCOUNT_PASSWORD.getCode())) {
|
||||
User user = userMapper.selectOne(new QueryWrapper<User>()
|
||||
.nested(wq->wq
|
||||
.like("account", account).or()
|
||||
.like("mobile", account).or()
|
||||
.eq("account", account).or()
|
||||
.eq("mobile", account).or()
|
||||
)
|
||||
.isNull("delete_time")
|
||||
.last("limit 1"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue