Commit 60ff9016 by 杨树贤

修复采购员跳过问题

parent 44a316f1
Showing with 2 additions and 3 deletions
...@@ -465,9 +465,7 @@ class DataService ...@@ -465,9 +465,7 @@ class DataService
$channelUids = $supplier['channel_uid'] ? explode(',', $supplier['channel_uid']) : []; $channelUids = $supplier['channel_uid'] ? explode(',', $supplier['channel_uid']) : [];
if ($channelUids) { if ($channelUids) {
$channelUsers = (new AdminUserService())->getAdminUserListByCodeIds($channelUids); $channelUsers = (new AdminUserService())->getAdminUserListByCodeIds($channelUids);
if (empty($channelUsers)) { if (!empty($channelUsers)) {
continue;
}
$firstChannelUser = $channelUsers[0]; $firstChannelUser = $channelUsers[0];
$firstChannelUserDepartmentName = (new DepartmentModel())->where('department_id', $firstChannelUserDepartmentName = (new DepartmentModel())->where('department_id',
$firstChannelUser['department_id']) $firstChannelUser['department_id'])
...@@ -475,6 +473,7 @@ class DataService ...@@ -475,6 +473,7 @@ class DataService
$firstChannelUserName = $firstChannelUser['name']; $firstChannelUserName = $firstChannelUser['name'];
$allChannelUserName = implode(',', array_column($channelUsers, 'name')); $allChannelUserName = implode(',', array_column($channelUsers, 'name'));
} }
}
$itemData = [ $itemData = [
$supplier['supplier_id'], $supplier['supplier_id'],
......
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