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
8963a87d
authored
Aug 11, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调试
parent
409707f3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
app/Http/Controllers/Filter/SupplierFilter.php
app/Http/Services/SupplierStatisticsService.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
8963a87d
...
...
@@ -258,15 +258,15 @@ 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->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', '');
//
});
//
});
break
;
}
return
$query
;
...
...
app/Http/Services/SupplierStatisticsService.php
View file @
8963a87d
...
...
@@ -79,7 +79,7 @@ class SupplierStatisticsService
return
$value
;
},
$result
);
$redis
->
set
(
$statisticsKey
,
json_encode
(
$result
));
$redis
->
expire
(
$statisticsKey
,
1
00
);
$redis
->
expire
(
$statisticsKey
,
1
);
return
$result
;
}
...
...
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