Commit 99849ce7 by mushishixian

统计优化

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