|
|
@@ -84,7 +84,7 @@ class LowPriceGoodsDataJobs implements ShouldQueue
|
|
|
$where[] = ['product_name', 'like', '%' . $product_name . '%'];
|
|
|
$where[] = ['product_specs', 'like', '%' . $product_specs . '%'];
|
|
|
$where[] = ['one_box_price', '<', $suggested_price];
|
|
|
- if ($company_scope == 2) {
|
|
|
+ if ($company_scope == 2 && $social_credit_code !='') {
|
|
|
$ScrapeDataModel->whereIn('qualification_number', $social_credit_code);
|
|
|
}
|
|
|
$product_data_info = $ScrapeDataModel->where($where)->paginate($limit, ['*'], 'page', $page)->toarray();
|
|
|
@@ -113,13 +113,16 @@ class LowPriceGoodsDataJobs implements ShouldQueue
|
|
|
'city_id' => $product_data['city_id'],
|
|
|
'city_name' => $product_data['city_name'],
|
|
|
'area_info' => $product_data['area_info'],
|
|
|
- 'category_name' => $category_name
|
|
|
+ 'category_name' => $category_name,
|
|
|
+ 'company_category_name' => '',
|
|
|
];
|
|
|
//获取公司绑定责任人信息
|
|
|
- $company_data = $ViolationStoreModel->where('social_credit_code',$product_data['qualification_number'])->first();
|
|
|
+ $company_data = $ViolationStoreModel->leftjoin('washconfig_company_category', 'washconfig_company_category.id', '=', 'washconfig_violation_store.category_id')
|
|
|
+ ->where('washconfig_violation_store.social_credit_code',$product_data['qualification_number'])->select(['washconfig_violation_store.id','washconfig_company_category.name as category_name'])->first();
|
|
|
$employee_id_list=[];
|
|
|
if($company_data){
|
|
|
$employee_id_list =$ViolationCompanyMemberModel->where('company_logid',$company_data->id)->pluck('employee_id')->toarray();
|
|
|
+ $insert_product_data['company_category_name'] = $company_data->category_name ? $company_data->category_name : '';
|
|
|
}
|
|
|
|
|
|
//查询配置的第一责任人
|