Commit 9209bfae by mushishixian

数据

parent c1c62c70
......@@ -266,7 +266,8 @@ class DataService
public function pushSupplierSKu()
{
$supplierModel = new SupplierChannelModel();
$suppliers = $supplierModel->where('is_type', 0)->where('supplier_group', 4)->get()->toArray();
$suppliers = $supplierModel->where('is_type', 0)->where('supplier_group', 4)->orderBy('supplier_id', 'desc')
->limit(130)->get()->toArray();
$redis = new RedisModel();
foreach ($suppliers as $supplier) {
$supplierTag = $redis->hget('supplier_search_tags', $supplier['supplier_code']);
......
......@@ -44,7 +44,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
});
Route::match(['get', 'post'], '/test', function () {
$service = new \App\Http\Services\DataService();
$service->importBlockSupplier();
$service->pushSupplierSKu();
// $service->makeSupplierSystemTag();
// $service->initSystemTag();
// $service->transferFileData();
......
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