Jelajahi Sumber

下发的波次任务顺序和商品任务反转的问题 注释

LD 4 tahun lalu
induk
melakukan
1c28c245fd
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Services/StationTaskBatchService.php

+ 1 - 1
app/Services/StationTaskBatchService.php

@@ -75,7 +75,7 @@ class StationTaskBatchService
             }
         }
         $this->batchService->updateWhereIn('id', data_get($batches_handled, '*.id'), ['status' => '处理中']);
-        $stationTaskBatches_toCreate=$stationTaskBatches_toCreate->reverse();
+        $stationTaskBatches_toCreate=$stationTaskBatches_toCreate->reverse();//这里的波次顺序是反的,不知为什么,所以反向一次就好了。其他解耦的地方都是正序,必须保持一致
         $this->insert($stationTaskBatches_toCreate->toArray());
 
         $stationTaskBatches_toCreate=$this->getAndAttachIds($stationTaskBatches_toCreate);