员工账号 状态校验
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user