Selaa lähdekoodia

[智价云] 修复分块导出冲突问题

tangyuanwang 1 päivä sitten
vanhempi
sitoutus
8ead70cd6f
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      app/Jobs/Manager/Other/ExportLowPriceGoodsJobs.php

+ 1 - 2
app/Jobs/Manager/Other/ExportLowPriceGoodsJobs.php

@@ -259,8 +259,7 @@ class ExportLowPriceGoodsJobs implements ShouldQueue
             });
         }
 
-        $query->orderByDesc('insert_time')->orderByDesc('collection_time')
-            ->chunkById($limit, function ($rows) use ($key_name) {
+        $query->chunkById($limit, function ($rows) use ($key_name) {
                 $result_data = $rows->toArray();
                 if (empty($result_data)) {
                     return true;