员工登录状态校验

This commit is contained in:
GYJ
2024-07-29 13:26:38 +08:00
parent cb7246d5fa
commit 08f3f8b5e0

View File

@@ -110,6 +110,11 @@ public class AuthorizationController {
if (isManage != null && isManage != 1) {
throw new BadRequestException("该账号无权限登录,请联系管理员");
}
Integer status = tbPlussShopStaff.getStatus();
if (status != null && status != 1) {
throw new BadRequestException("该账号已被禁用,请联系管理员");
}
}
TbShopInfo byAccount = tbShopInfoRepository.findById(Integer.valueOf(tbPlussShopStaff.getShopId())).get();
//校验商户商户激活是否到期(未激活)