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
91567bc6
authored
Mar 02, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完成付款类型
parent
5d567e7d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
5 deletions
app/Http/Controllers/Filter/SupplierFilter.php
app/Http/Kernel.php
app/Http/Services/SyncSupplierService.php
app/Http/routes.php
public/index.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
91567bc6
...
...
@@ -26,7 +26,7 @@ class SupplierFilter
$query
->
where
(
'supplier_channel.supplier_id'
,
$map
[
'supplier_id'
]);
}
if
(
!
empty
(
$map
[
'supplier_name'
]))
{
$query
->
where
(
'supplier_name'
,
'like'
,
"
%
{
$map
[
'supplier_name'
]
}
%"
);
$query
->
where
(
'supplier_name'
,
'like'
,
"
{
$map
[
'supplier_name'
]
}
%"
);
}
if
(
!
empty
(
$map
[
'supplier_code'
]))
{
$codes
=
explode
(
','
,
$map
[
'supplier_code'
]);
...
...
app/Http/Kernel.php
View file @
91567bc6
...
...
@@ -24,7 +24,7 @@ class Kernel extends HttpKernel
*/
protected
$middlewareGroups
=
[
'web'
=>
[
//
\App\Http\Middleware\CheckLogin::class,
\App\Http\Middleware\CheckLogin
::
class
,
// \App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse
::
class
,
// \Illuminate\Session\Middleware\StartSession::class,
...
...
app/Http/Services/SyncSupplierService.php
View file @
91567bc6
...
...
@@ -75,7 +75,6 @@ class SyncSupplierService
if
(
!
empty
(
$supplier
[
'currency'
]))
{
$message
[
'currencyNumber'
]
=
array_get
(
config
(
'sync.SyncCurrencyType'
),
$supplier
[
'currency'
]);
}
$conn
=
new
AMQPStreamConnection
(
config
(
'database.connections.rabbitmq.host'
),
config
(
'database.connections.rabbitmq.port'
),
config
(
'database.connections.rabbitmq.login'
),
...
...
app/Http/routes.php
View file @
91567bc6
...
...
@@ -49,5 +49,5 @@ Route::group(['middleware' => ['external'],'namespace' => 'Api'], function () {
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
$service
=
new
\App\Http\Services\DataService
();
\App\Model\SupplierChannelModel
::
where
(
'supplier_name'
,
'like'
,
"%TONMY%"
)
->
get
()
->
toArray
();
});
public/index.php
View file @
91567bc6
...
...
@@ -18,7 +18,6 @@
| loading any of our classes later on. It feels nice to relax.
|
*/
require
__DIR__
.
'/../bootstrap/autoload.php'
;
/*
...
...
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