|
|
@@ -54,7 +54,11 @@ class LowPriceGoodsJobs implements ShouldQueue
|
|
|
$insert_data = ['name' => '低价挂网商品', 'code' => 'LowPriceGoodsJobs', 'admin_id' => $admin_id];
|
|
|
$executeLog_id = $ExecuteLogModel->addExecuteLog_content($insert_data);
|
|
|
}
|
|
|
- $list_config_data = $ConfigLowPriceGoodsModel->where('status', 0)->paginate($limit, ['*'], 'page', $page)->toarray();
|
|
|
+ $list_config_data = $ConfigLowPriceGoodsModel->leftjoin('washconfig_product_category', 'washconfig_product_category.id', '=', 'washconfig_lowprice_product.category_id')
|
|
|
+ ->where('washconfig_lowprice_product.status', 0)
|
|
|
+ ->select(['washconfig_lowprice_product.*', 'washconfig_product_category.name as category_name'])
|
|
|
+ ->paginate($limit, ['*'], 'page', $page)->toarray();
|
|
|
+
|
|
|
if (!$list_config_data || empty($list_config_data['data'])) {
|
|
|
return true;
|
|
|
}
|
|
|
@@ -75,6 +79,7 @@ class LowPriceGoodsJobs implements ShouldQueue
|
|
|
'company_scope' => $value['company_scope'],
|
|
|
'social_credit_code' => $social_credit_code,
|
|
|
'executeLog_id' => $executeLog_id,
|
|
|
+ 'category_name' => $value['category_name'] ? $value['category_name']:''
|
|
|
];
|
|
|
LowPriceGoodsDataJobs::dispatch($message_data);
|
|
|
// LowPriceGoodsDataJobs::dispatchSync($message_data);
|