Parcourir la source

[智价云] 更新发货地责任人分配

tangyuanwang il y a 18 heures
Parent
commit
af6157fe64

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

@@ -554,7 +554,7 @@ class LowPriceGoodsDataJobs implements ShouldQueue
 
                 //当以上规则匹配不到责任人时,则去查询发货地区信息关联责任人
                 if (trim($first_responsible_person) == '' && trim($product_data['shipment_city_id']) != '') {
-                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['city_id'])->pluck('employee_id')->toarray();
+                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['shipment_city_id'])->pluck('employee_id')->toarray();
                     if (!empty($employee_id_area)) {
                         $where_city[] = ['company_id', '=', $company_id];
                         $where_city[] = ['id', 'in', $employee_id_area];
@@ -623,7 +623,7 @@ class LowPriceGoodsDataJobs implements ShouldQueue
 
                 //当以上规则匹配不到责任人时,则去查询发货地区信息关联责任人
                 if (trim($responsible_person) == '' && trim($product_data['shipment_city_id']) != '') {
-                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['city_id'])->pluck('employee_id')->toarray();
+                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['shipment_city_id'])->pluck('employee_id')->toarray();
                     if (!empty($employee_id_area)) {
                         $where_city[] = ['company_id', '=', $company_id];
                         $where_city[] = ['id', 'in', $employee_id_area];

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

@@ -341,7 +341,7 @@ class ViolationCompanyDataJobs implements ShouldQueue
 
                 //当以上规则匹配不到责任人时,则去查询发货地区信息关联责任人
                 if (trim($first_responsible_person) == '' && trim($product_data['shipment_city_id']) != '') {
-                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['city_id'])->pluck('employee_id')->toarray();
+                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['shipment_city_id'])->pluck('employee_id')->toarray();
                     if (!empty($employee_id_area)) {
                         $where_city[] = ['company_id', '=', $company_id];
                         $where_city[] = ['id', 'in', $employee_id_area];
@@ -410,7 +410,7 @@ class ViolationCompanyDataJobs implements ShouldQueue
 
                 //当以上规则匹配不到责任人时,则去查询发货地区信息关联责任人
                 if (trim($responsible_person) == '' && trim($product_data['shipment_city_id']) != '') {
-                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['city_id'])->pluck('employee_id')->toarray();
+                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['shipment_city_id'])->pluck('employee_id')->toarray();
                     if (!empty($employee_id_area)) {
                         $where_city[] = ['company_id', '=', $company_id];
                         $where_city[] = ['id', 'in', $employee_id_area];

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

@@ -532,7 +532,7 @@ class ViolationProductDataJobs implements ShouldQueue
 
                 //当以上规则匹配不到责任人时,则去查询发货地区信息关联责任人
                 if (trim($first_responsible_person) == '' && trim($product_data['shipment_city_id']) != '') {
-                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['city_id'])->pluck('employee_id')->toarray();
+                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['shipment_city_id'])->pluck('employee_id')->toarray();
                     if (!empty($employee_id_area)) {
                         $where_city[] = ['company_id', '=', $company_id];
                         $where_city[] = ['id', 'in', $employee_id_area];
@@ -601,7 +601,7 @@ class ViolationProductDataJobs implements ShouldQueue
 
                 //当以上规则匹配不到责任人时,则去查询发货地区信息关联责任人
                 if (trim($responsible_person) == '' && trim($product_data['shipment_city_id']) != '') {
-                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['city_id'])->pluck('employee_id')->toarray();
+                    $employee_id_area = $EmployeeAreaModel->where('city_id', $product_data['shipment_city_id'])->pluck('employee_id')->toarray();
                     if (!empty($employee_id_area)) {
                         $where_city[] = ['company_id', '=', $company_id];
                         $where_city[] = ['id', 'in', $employee_id_area];