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
90855e10
authored
Dec 27, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复bug
parent
c34fc6f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Http/Controllers/Filter/ChainFilter.php
app/Http/routes.php
app/Http/Controllers/Filter/ChainFilter.php
View file @
90855e10
...
...
@@ -39,7 +39,7 @@ class ChainFilter
if
(
!
empty
(
$map
[
'has_supplier'
]))
{
$supplierNames
=
SupplierChannelModel
::
where
(
'is_type'
,
0
)
->
pluck
(
'supplier_name'
)
->
toArray
();
if
(
$map
[
'has_supplier'
]
==
1
)
{
$query
->
whereIn
(
'com_name'
,
$supplierNames
);
$query
->
whereIn
(
'com_name'
,
$supplierNames
)
->
where
(
'com_name'
,
'!='
,
''
)
;
}
else
{
$query
->
whereNotIn
(
'com_name'
,
$supplierNames
);
}
...
...
app/Http/routes.php
View file @
90855e10
...
...
@@ -82,5 +82,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
(
new
\App\Http\Services\DataService
())
->
repairInvalidSpaceSupplierName
(
);
dd
((
new
\App\Http\Services\CompanyService
())
->
checkCompanyEntity
(
'中山市汉仁电子有限公司'
)
);
});
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