소스 검색

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

tangyuanwang 1 일 전
부모
커밋
8ead70cd6f
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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;