公司管理员不能登录砂站系统

dev
wany 2026-03-13 09:24:18 +08:00
parent 4a65aa26ca
commit 4a67857946
1 changed files with 4 additions and 0 deletions

View File

@ -251,6 +251,10 @@ public class SysuserSyncService extends BaseService {
return Result.failed(false, "登陆失败");
}
if(sysuser.getType() == UserTypeEnum.LEAD.getTypeid()){
return Result.failedstr("登陆失败。当前用户是公司管理员,请登陆结算中心系统");
}
if (sysuser.getType() == UserTypeEnum.SUPERMARKET.getTypeid() && sysuser.getEntityId() != CliCacheData.SUP.getId()) {
return Result.failedstr("登陆失败。当前系统是%s", CliCacheData.SUP.getName());
}