Commit 99849ce7 by mushishixian

统计优化

parent 8963a87d
Showing with 10 additions and 9 deletions
...@@ -258,15 +258,16 @@ class SupplierFilter ...@@ -258,15 +258,16 @@ class SupplierFilter
break; break;
//联系人待完善 //联系人待完善
case "contact_no_complete": case "contact_no_complete":
// $query->whereHas('contact', function ($q) { $query->rightjoin('supplier_contact', 'supplier_channel.supplier_id', '=',
// $q->where('can_check_uids', request()->user->codeId)->where(function ($subQuery) { 'supplier_contact.supplier_id')
// $subQuery->where('supplier_consignee', '') ->selectRaw('lie_supplier_channel.*')
// ->orWhere('supplier_position', '') ->where(function ($q) {
// ->orWhere('supplier_email', '') $q->where('supplier_consignee', '')
// ->orWhere('supplier_mobile', '') ->orWhere('supplier_position', '')
// ->orWhere('supplier_telephone', ''); ->orWhere('supplier_email', '')
// }); ->orWhere('supplier_mobile', '')
// }); ->orWhere('supplier_telephone', '');
})->groupBy('supplier_channel.supplier_id');
break; break;
} }
return $query; return $query;
......
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