|
|
@@ -90,6 +90,9 @@ public class AdminUserServiceImpl extends MyBaseServiceImpl<AdminUserMapper, Adm
|
|
|
@Override
|
|
|
public R<?> login(String mobilePhone, String password) {
|
|
|
var user = lambdaQuery().eq(AdminUser::getMobilePhone, mobilePhone).one();
|
|
|
+ if (user == null) {
|
|
|
+ return R.failed(ResponseEnum.LOGIN_FAILED);
|
|
|
+ }
|
|
|
if (user.getStatus() == AdminUser.STATUS_禁用) {
|
|
|
throw new BusinessException("用户状态异常,无法登录");
|
|
|
}
|