Compare commits

..

2 Commits
master ... dev

Author SHA1 Message Date
wany 4a67857946 公司管理员不能登录砂站系统 2026-03-13 09:24:18 +08:00
wany 4a65aa26ca 巴河新磅调试修改 2026-03-12 17:28:18 +08:00
2 changed files with 5 additions and 1 deletions

View File

@ -251,7 +251,7 @@ public class InController extends Controller implements Runnable {
} }
// 巴河进料需要减两吨 // 巴河进料需要减两吨
if (CliCacheData.SUP.getId() == 4 && weight > 35){ if ((CliCacheData.SUP.getId() == 4 || CliCacheData.SUP.getId() == 5) && weight > 35){
weight -= 2; weight -= 2;
} }

View File

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