Kaynağa Gözat

[智价云] 公司黑白名单清洗筛选更新

tangyuanwang 4 gün önce
ebeveyn
işleme
dd148f3217

+ 2 - 1
app/Jobs/Manager/Process/LowPriceGoodsJobs.php

@@ -60,7 +60,8 @@ class LowPriceGoodsJobs implements ShouldQueue
             }
             $list_data = $list_config_data['data'];
             foreach ($list_data as $key => $value) {
-                $company_data = $LowPriceGoodsCompanyModel->where('lowprice_product_logid', $value['id'])
+                $company_data = $LowPriceGoodsCompanyModel->where('washconfig_lowprice_product_company.lowprice_product_logid', $value['id'])
+                    ->where('washconfig_violation_store.store_type', 1)
                     ->join('washconfig_violation_store', 'washconfig_violation_store.id', '=', 'washconfig_lowprice_product_company.company_id')
                     ->select(['washconfig_violation_store.id', 'washconfig_violation_store.social_credit_code', 'washconfig_lowprice_product_company.company_id'])->get()->toArray();
                 $social_credit_code = !empty($company_data) ? array_column($company_data, 'social_credit_code') : '';

+ 2 - 1
app/Jobs/Manager/Process/ViolationProductJobs.php

@@ -59,7 +59,8 @@ class ViolationProductJobs implements ShouldQueue
             }
             $list_data = $list_config_data['data'];
             foreach ($list_data as $key => $value) {
-                $company_data = $ViolationProductCompanyModel->where('violation_product_logid', $value['id'])
+                $company_data = $ViolationProductCompanyModel->where('washconfig_violation_product_company.violation_product_logid', $value['id'])
+                    ->where('washconfig_violation_store.store_type', 1)
                     ->join('washconfig_violation_store', 'washconfig_violation_store.id', '=', 'washconfig_violation_product_company.company_id')
                     ->select(['washconfig_violation_store.id', 'washconfig_violation_store.social_credit_code', 'washconfig_violation_product_company.company_id'])->get()->toArray();
                 $social_credit_code = !empty($company_data) ? array_column($company_data, 'social_credit_code') : '';

+ 1 - 1
app/Jobs/Manager/Process/ViolationStoreJobs.php

@@ -51,7 +51,7 @@ class ViolationStoreJobs implements ShouldQueue
                 $insert_data =['name' =>'违规挂网店铺', 'code' => 'ViolationStoreJobs', 'admin_id' => $admin_id];
                 $executeLog_id=$ExecuteLogModel->addExecuteLog_content($insert_data);
             }
-            $list_config_data = $ViolationStoreModel->where('status', 0)->paginate($limit, ['*'], 'page', $page)->toarray();
+            $list_config_data = $ViolationStoreModel->where('status', 0)->where('store_type', 1)->paginate($limit, ['*'], 'page', $page)->toarray();
             if (!$list_config_data || empty($list_config_data['data'])) {
                 return true;
             }