|
@@ -203,7 +203,7 @@ class ViolationProductDataJobs implements ShouldQueue
|
|
|
$where_query3[] = ['duty_type', '=', 1]; //责任类型1=第一责任人,2=责任人
|
|
$where_query3[] = ['duty_type', '=', 1]; //责任类型1=第一责任人,2=责任人
|
|
|
}
|
|
}
|
|
|
//并行查询第一责任人
|
|
//并行查询第一责任人
|
|
|
- $first_responsible_person = $EmployeeModel->orWhere($where_query1)->orWhere($where_query2)->orWhere($where_query3)->pluck('id')->implode(',');
|
|
|
|
|
|
|
+ $first_responsible_person = $EmployeeModel->where($where_query1)->orWhere($where_query2)->orWhere($where_query3)->pluck('id')->implode(',');
|
|
|
$insert_product_data['first_responsible_person'] = $first_responsible_person;
|
|
$insert_product_data['first_responsible_person'] = $first_responsible_person;
|
|
|
//查询责任人
|
|
//查询责任人
|
|
|
$where_query1 = [];
|
|
$where_query1 = [];
|
|
@@ -233,7 +233,7 @@ class ViolationProductDataJobs implements ShouldQueue
|
|
|
$where_query3[] = ['duty_type', '=', 2]; //责任类型1=第一责任人,2=责任人
|
|
$where_query3[] = ['duty_type', '=', 2]; //责任类型1=第一责任人,2=责任人
|
|
|
}
|
|
}
|
|
|
//并行查询责任人
|
|
//并行查询责任人
|
|
|
- $responsible_person = $EmployeeModel->orWhere($where_query1)->orWhere($where_query2)->orWhere($where_query3)->pluck('id')->implode(',');
|
|
|
|
|
|
|
+ $responsible_person = $EmployeeModel->where($where_query1)->orWhere($where_query2)->orWhere($where_query3)->pluck('id')->implode(',');
|
|
|
$insert_product_data['responsible_person'] = $responsible_person;
|
|
$insert_product_data['responsible_person'] = $responsible_person;
|
|
|
|
|
|
|
|
//溯源责任人
|
|
//溯源责任人
|