cqpCow hai 10 meses
pai
achega
6372553f11
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Service/ProductService.php

+ 1 - 1
app/Service/ProductService.php

@@ -662,7 +662,7 @@ class ProductService extends Service
             ->pluck('title','id')
             ->toArray();
 
-        $depart_map = Depart::whereIn('top_depart_id',array_unique(array_column($data['top_depart_id'])))->pluck('title','id')->toArray();
+        $depart_map = Depart::whereIn('id',array_unique(array_column($data['data'],'top_depart_id')))->pluck('title','id')->toArray();
 
         //产品使用价格
         $detail_map = $this->getProductPrice(array_column($data['data'],'id'), $type);