Commit 298001aa authored by nie'hong's avatar nie'hong

验证用户状态登录

parent 3e08e172
...@@ -115,6 +115,7 @@ public class WorkUserServiceImpl implements WorkUserService { ...@@ -115,6 +115,7 @@ public class WorkUserServiceImpl implements WorkUserService {
if (null == user) { if (null == user) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.USER_LOGIN_NAME_OR_PASSWORD_IS_ERROR); throw new BaseCustomException(BASE_RESP_CODE_ENUM.USER_LOGIN_NAME_OR_PASSWORD_IS_ERROR);
} }
// 是否离职状态
if (user.getStatus() != ON_THE_JOB_STATUS) { if (user.getStatus() != ON_THE_JOB_STATUS) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.LEAVE_JOB_USER); throw new BaseCustomException(BASE_RESP_CODE_ENUM.LEAVE_JOB_USER);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment