Explorar o código

[智价云] 店铺维度清洗更新

tangyuanwang hai 1 día
pai
achega
1bbe962835

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

@@ -443,7 +443,7 @@ class LowPriceGoodsDataJobs implements ShouldQueue
         if ($specify_responsible_person == 0) {
             //获取店铺责任人信息
             $ViolationStoreModel = new ViolationStoreModel();
-            $store_data_info = $ViolationStoreModel->where('store_name', $product_data['store_name'])->first();
+            $store_data_info = $ViolationStoreModel->where('company_id', $company_id)->where('store_name', $product_data['store_name'])->first();
             if (!empty($store_data_info) && trim($store_data_info->employee_ids) != '') {
                 //查询店铺第一责任人信息
                 $EmployeeModel = new EmployeeModel();

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

@@ -239,7 +239,7 @@ class ViolationCompanyDataJobs implements ShouldQueue
         if ($specify_responsible_person == 0) {
             //获取店铺责任人信息
             $ViolationStoreModel = new ViolationStoreModel();
-            $store_data_info = $ViolationStoreModel->where('store_name', $product_data['store_name'])->first();
+            $store_data_info = $ViolationStoreModel->where('company_id', $company_id)->where('store_name', $product_data['store_name'])->first();
             if (!empty($store_data_info) && trim($store_data_info->employee_ids) != '') {
                 //查询店铺第一责任人信息
                 $EmployeeModel = new EmployeeModel();

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

@@ -421,7 +421,7 @@ class ViolationProductDataJobs implements ShouldQueue
         if ($specify_responsible_person == 0) {
             //获取店铺责任人信息
             $ViolationStoreModel = new ViolationStoreModel();
-            $store_data_info = $ViolationStoreModel->where('store_name', $product_data['store_name'])->first();
+            $store_data_info = $ViolationStoreModel->where('company_id', $company_id)->where('store_name', $product_data['store_name'])->first();
             if (!empty($store_data_info) && trim($store_data_info->employee_ids) != '') {
                 //查询店铺第一责任人信息
                 $EmployeeModel = new EmployeeModel();