|
|
@@ -71,9 +71,10 @@ class ViolationStoreDataJobs implements ShouldQueue
|
|
|
|
|
|
if ($platform != '0') {
|
|
|
$platform = explode(',', $platform);
|
|
|
- $ScrapeDataModel=$ScrapeDataModel->whereIn('platform', $platform);
|
|
|
+ $ScrapeDataModel=$ScrapeDataModel->where('qualification_number', $social_credit_code)->whereIn('platform', $platform);
|
|
|
+ }else{
|
|
|
+ $ScrapeDataModel=$ScrapeDataModel->where('qualification_number', $social_credit_code);
|
|
|
}
|
|
|
- $ScrapeDataModel->where('qualification_number', $social_credit_code);
|
|
|
$product_data_info = $ScrapeDataModel->paginate($limit, ['*'], 'page', $page)->toarray();
|
|
|
$product_datas = $product_data_info['data'];
|
|
|
if (empty($product_datas)) {
|