cqp 19 horas atrás
pai
commit
6158aee387
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      app/Service/ApplyOrderService.php

+ 2 - 1
app/Service/ApplyOrderService.php

@@ -4276,7 +4276,8 @@ class ApplyOrderService extends Service
                 ->pluck('dispatch_sub_id')
                 ->toArray();
             $result = DispatchSub::where('del_time',0)
-                ->where('id', $dispatch_id)
+                ->whereIn('id', $dispatch_id)
+                ->where('type',1)
                 ->select('id', 'dispatch_no as order_no')
                 ->get()->toArray();
         }elseif ($for_type == 4){