Commit 9209bfae by mushishixian

数据

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