Commit caa46e64 by 杨树贤

优化筛选

parent 83b6b826
Showing with 3 additions and 0 deletions
...@@ -1174,6 +1174,9 @@ class DataService ...@@ -1174,6 +1174,9 @@ class DataService
$attachments = SupplierAttachmentsModel::where('field_name', 'cooperation_agreement')->groupBy('supplier_id')->get()->toArray(); $attachments = SupplierAttachmentsModel::where('field_name', 'cooperation_agreement')->groupBy('supplier_id')->get()->toArray();
foreach ($attachments as $attachment) { foreach ($attachments as $attachment) {
$supplier = SupplierChannelModel::where('supplier_id', $attachment['supplier_id'])->first()->toArray(); $supplier = SupplierChannelModel::where('supplier_id', $attachment['supplier_id'])->first()->toArray();
if ($supplier['is_type'] == 1) {
continue;
}
$skuUserNameRaw = array_get($users, $supplier['yunxin_channel_uid']); $skuUserNameRaw = array_get($users, $supplier['yunxin_channel_uid']);
$departmentName = (new DepartmentService())->getDepartmentNameByUserName($skuUserNameRaw); $departmentName = (new DepartmentService())->getDepartmentNameByUserName($skuUserNameRaw);
$excelData[] = [ $excelData[] = [
......
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