员工账号 状态校验

This commit is contained in:
2024-07-26 14:49:26 +08:00
parent 1ac75009c8
commit d2cc4fcac6

View File

@@ -90,6 +90,8 @@ public class LoginService {
TbPlussShopStaff tbPlussShopStaff = tbPlussShopStaffMapper.selectByAccount(loginReq.getLoginName());
if (ObjectUtil.isEmpty(tbPlussShopStaff)) {
return Result.fail(CodeEnum.ACCOUNTEIXST);
} else if (!tbPlussShopStaff.getStatus()) {
return Result.fail(CodeEnum.UNAUTHORIZED);
} else if (tbPlussShopStaff.getType().equals("staff")) {
Integer isPc = tbPlussShopStaff.getIsPc();
if (isPc != null && isPc != 1) {