Commit 91567bc6 by 杨树贤

完成付款类型

parent 5d567e7d
...@@ -26,7 +26,7 @@ class SupplierFilter ...@@ -26,7 +26,7 @@ class SupplierFilter
$query->where('supplier_channel.supplier_id', $map['supplier_id']); $query->where('supplier_channel.supplier_id', $map['supplier_id']);
} }
if (!empty($map['supplier_name'])) { 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'])) { if (!empty($map['supplier_code'])) {
$codes = explode(',', $map['supplier_code']); $codes = explode(',', $map['supplier_code']);
......
...@@ -24,7 +24,7 @@ class Kernel extends HttpKernel ...@@ -24,7 +24,7 @@ class Kernel extends HttpKernel
*/ */
protected $middlewareGroups = [ protected $middlewareGroups = [
'web' => [ 'web' => [
// \App\Http\Middleware\CheckLogin::class, \App\Http\Middleware\CheckLogin::class,
// \App\Http\Middleware\EncryptCookies::class, // \App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
// \Illuminate\Session\Middleware\StartSession::class, // \Illuminate\Session\Middleware\StartSession::class,
......
...@@ -75,7 +75,6 @@ class SyncSupplierService ...@@ -75,7 +75,6 @@ class SyncSupplierService
if (!empty($supplier['currency'])) { if (!empty($supplier['currency'])) {
$message['currencyNumber'] = array_get(config('sync.SyncCurrencyType'), $supplier['currency']); $message['currencyNumber'] = array_get(config('sync.SyncCurrencyType'), $supplier['currency']);
} }
$conn = new AMQPStreamConnection(config('database.connections.rabbitmq.host'), $conn = new AMQPStreamConnection(config('database.connections.rabbitmq.host'),
config('database.connections.rabbitmq.port'), config('database.connections.rabbitmq.port'),
config('database.connections.rabbitmq.login'), config('database.connections.rabbitmq.login'),
......
...@@ -49,5 +49,5 @@ Route::group(['middleware' => ['external'],'namespace' => 'Api'], function () { ...@@ -49,5 +49,5 @@ Route::group(['middleware' => ['external'],'namespace' => 'Api'], function () {
}); });
Route::match(['get', 'post'], '/test', function () { Route::match(['get', 'post'], '/test', function () {
$service = new \App\Http\Services\DataService(); \App\Model\SupplierChannelModel::where('supplier_name','like',"%TONMY%")->get()->toArray();
}); });
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
| loading any of our classes later on. It feels nice to relax. | loading any of our classes later on. It feels nice to relax.
| |
*/ */
require __DIR__.'/../bootstrap/autoload.php'; require __DIR__.'/../bootstrap/autoload.php';
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment