Commit 60ff9016 by 杨树贤

修复采购员跳过问题

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