Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
99849ce7
authored
Aug 11, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
统计优化
parent
8963a87d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
app/Http/Controllers/Filter/SupplierFilter.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
99849ce7
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment