浏览代码

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

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;