Commit 2dd5ccf5 by 杨树贤

放宽条件

parent de0a0267
Showing with 4 additions and 3 deletions
......@@ -100,8 +100,8 @@ class SupplierAuditService
'supplier_type',
'settlement_type',
];
foreach ($supplier as $key=>&$value) {
if (in_array($key,$needChangeField) && empty($value)) {
foreach ($supplier as $key => &$value) {
if (in_array($key, $needChangeField) && empty($value)) {
$value = '';
}
}
......@@ -141,7 +141,8 @@ class SupplierAuditService
$departmentService = new DepartmentService();
$subordinateUserIds = $departmentService->getSubordinateUserIds($auditUserId);
if (in_array($lastUpdateUserId, $subordinateUserIds)) {
if (in_array($lastUpdateUserId, $subordinateUserIds) || in_array($supplier['create_uid'],
$subordinateUserIds)) {
return true;
}
return false;
......
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