Commit 90855e10 by 杨树贤

修复bug

parent c34fc6f0
...@@ -39,7 +39,7 @@ class ChainFilter ...@@ -39,7 +39,7 @@ class ChainFilter
if (!empty($map['has_supplier'])) { if (!empty($map['has_supplier'])) {
$supplierNames = SupplierChannelModel::where('is_type', 0)->pluck('supplier_name')->toArray(); $supplierNames = SupplierChannelModel::where('is_type', 0)->pluck('supplier_name')->toArray();
if ($map['has_supplier'] == 1) { if ($map['has_supplier'] == 1) {
$query->whereIn('com_name', $supplierNames); $query->whereIn('com_name', $supplierNames)->where('com_name', '!=', '');
} else { } else {
$query->whereNotIn('com_name', $supplierNames); $query->whereNotIn('com_name', $supplierNames);
} }
......
...@@ -82,5 +82,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function () ...@@ -82,5 +82,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
}); });
Route::match(['get', 'post'], '/test', function () { Route::match(['get', 'post'], '/test', function () {
(new \App\Http\Services\DataService())->repairInvalidSpaceSupplierName(); dd((new \App\Http\Services\CompanyService())->checkCompanyEntity('中山市汉仁电子有限公司'));
}); });
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