优化登录接口

This commit is contained in:
季圣华
2023-07-03 23:37:21 +08:00
parent cdb30aff72
commit 2f7c1cd950

View File

@@ -372,7 +372,7 @@ public class UserService {
List<User> list = null;
try {
UserExample example = new UserExample();
example.createCriteria().andLoginNameEqualTo(loginName);
example.createCriteria().andLoginNameEqualTo(loginName).andStatusNotEqualTo(BusinessConstants.USER_STATUS_DELETE);
list = userMapper.selectByExample(example);
if (null != list && list.size() == 0) {
return ExceptionCodeConstants.UserExceptionCode.USER_NOT_EXIST;