Commit 5fbcd9a6 by 杨树贤

审核校验跳过助理用户id

parent 11663ccf
......@@ -138,6 +138,8 @@ class SupplierAuditService
if (checkPerm('IgnoreAuditCheck')) {
return true;
}
$supplierModel = new SupplierChannelModel();
$supplier = $supplierModel->where('supplier_id', $supplierId)->first()->toArray();
$auditUserId = request()->user->userId;
......@@ -156,6 +158,12 @@ class SupplierAuditService
return true;
}
}
//专门给采购助理这个账号要做特殊逻辑,采购系统那边没有按照正常流程去判断,导致这个账号的部门分布完全不合理,所以供应商系统这边只能恶心自己去加特殊跳过了
if ($lastUpdateUserId == config('field.AssistantUserId')) {
return true;
}
//审批人只能审批自己的部下修改的供应商
$departmentService = new DepartmentService();
$subordinateUserIds = $departmentService->getSubordinateUserIds($auditUserId);
......
......@@ -181,5 +181,8 @@ return [
'分销平台' => '分销平台',
'代工厂' => '代工厂',
],
'NeedCheckCompanyRegion' => [2, 4]
'NeedCheckCompanyRegion' => [2, 4],
//专门给采购助理这个账号要做特殊逻辑,采购系统那边没有按照正常流程去判断,导致这个账号的部门分布完全不合理,所以供应商系统这边只能恶心自己去加特殊跳过了
'AssistantUserId' => 1635,
];
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment