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
989a5aad
authored
Sep 08, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
模糊搜索
parent
f4a96444
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
app/Http/Controllers/Filter/SupplierFilter.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
989a5aad
...
@@ -66,6 +66,12 @@ class SupplierFilter
...
@@ -66,6 +66,12 @@ class SupplierFilter
if
(
!
empty
(
$map
[
'channel_uid'
]))
{
if
(
!
empty
(
$map
[
'channel_uid'
]))
{
$query
->
where
(
'channel_uid'
,
'like'
,
"%
{
$map
[
'channel_uid'
]
}
%"
);
$query
->
where
(
'channel_uid'
,
'like'
,
"%
{
$map
[
'channel_uid'
]
}
%"
);
}
}
if
(
!
empty
(
$map
[
'supplier_search_fuzzy'
]))
{
$query
->
where
(
'supplier_name'
,
'like'
,
"%${map['supplier_search_fuzzy']}%"
)
->
orWhere
(
'supplier_code'
,
'like'
,
"%${map['supplier_search_fuzzy']}%"
);
}
if
(
!
empty
(
$map
[
'create_uid'
]))
{
if
(
!
empty
(
$map
[
'create_uid'
]))
{
//因为传过来的是内部编码,所以要转成admin_id
//因为传过来的是内部编码,所以要转成admin_id
$adminService
=
new
AdminUserService
();
$adminService
=
new
AdminUserService
();
...
...
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