소스 검색

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

LD 5 년 전
부모
커밋
1c28c245fd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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' => '处理中']);
         $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());
         $this->insert($stationTaskBatches_toCreate->toArray());
 
 
         $stationTaskBatches_toCreate=$this->getAndAttachIds($stationTaskBatches_toCreate);
         $stationTaskBatches_toCreate=$this->getAndAttachIds($stationTaskBatches_toCreate);