Przeglądaj źródła

[智价云] 清洗完成状态更新

tangyuanwang 14 godzin temu
rodzic
commit
472f538836

+ 3 - 0
app/Jobs/Manager/Process/LowPriceGoodsJobs.php

@@ -65,6 +65,9 @@ class LowPriceGoodsJobs implements ShouldQueue
             $totle_page = 0;
             $list_config_data = $ConfigLowPriceGoodsModel->with(['product_keyword'])->paginate($limit, ['*'], 'page', $page)->toarray();
             if (!$list_config_data || empty($list_config_data['data'])) {
+                if($page == 1 && $executeLog_id){
+                    $ExecuteLogModel->where('id', $executeLog_id)->update(['status' => 0,'update_time'=> time()]);
+                }
                 return true;
             }
             //获取总页码

+ 3 - 0
app/Jobs/Manager/Process/ViolationProductJobs.php

@@ -64,6 +64,9 @@ class ViolationProductJobs implements ShouldQueue
             $totle_page = 0;
             $list_config_data = $ConfigViolationProductModel->with(['product_keyword'])->paginate($limit, ['*'], 'page', $page)->toarray();
             if (!$list_config_data || empty($list_config_data['data'])) {
+                if($page == 1 && $executeLog_id){
+                    $ExecuteLogModel->where('id', $executeLog_id)->update(['status' => 0,'update_time'=> time()]);
+                }
                 return true;
             }
             $totle_page = $list_config_data['last_page'];

+ 3 - 0
app/Jobs/Manager/Process/ViolationStoreJobs.php

@@ -61,6 +61,9 @@ class ViolationStoreJobs implements ShouldQueue
             $totle_page = 0;
             $list_config_data = $ViolationStoreModel->paginate($limit, ['*'], 'page', $page)->toarray();
             if (!$list_config_data || empty($list_config_data['data'])) {
+                if($page == 1 && $executeLog_id){
+                    $ExecuteLogModel->where('id', $executeLog_id)->update(['status' => 0,'update_time'=> time()]);
+                }
                 return true;
             }
             $totle_page = $list_config_data['last_page'];