Commit 54ef12e0 by 杨树贤

修复公用申请问题

parent af339173
......@@ -41,7 +41,7 @@ class SupplierShareApplyApiController extends Controller
}
$supplierModel = new SupplierChannelModel();
//下面的处理是为了兼容有问题的数据
if (!empty($supplier = $supplierModel->where('supplier_name', $supplierName)->first())) {
if (!empty($supplier = $supplierModel->where('supplier_name', $supplierName)->where('group_code', '!=', '')->first())) {
// $supplier = $supplierModel->where('supplier_name', 'like', "%$supplierName%")->whereNotIn('status',
// [SupplierChannelModel::STATUS_DISABLE, SupplierChannelModel::STATUS_REJECT])->first();
}
......
......@@ -60,7 +60,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
Route::match(['get', 'post'], '/api/supplier_memo/{key}', 'SupplierMemoApiController@Entrance');
//单独的统计接口
Route::match(['get', 'post'], '/statisticsSkuNumber', function () {
(new \App\Http\Services\DataService())->syncDaigouSuppliersToErp();
(new \App\Http\Services\DataService())->statisticsSkuNumberFromSKu();
});
});
......
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