hu hao 4 лет назад
Родитель
Сommit
8c4f4ca139
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/Services/OrderCommodityService.php

+ 2 - 2
app/Services/OrderCommodityService.php

@@ -34,8 +34,8 @@ class OrderCommodityService
     public function correctLocation_fromWMS($orderCommodities){
         $orderCommodities->loadMissing('order.batch');
         $details=OracleActAllocationDetails::query()
-            ->where('orderno',data_get($orderCommodities,'*.order.code')??[])
-            ->where('waveno',data_get($orderCommodities,'*.order.batch.code')??[])
+            ->whereIn('orderno',data_get($orderCommodities,'*.order.code')??[])
+            ->whereIn('waveno',data_get($orderCommodities,'*.order.batch.code')??[])
             ->get(['orderno','location','waveno']);
         foreach($orderCommodities as &$orderCommodity){
             $orderCommodity['location'] ==$details