cqpCow 1 år sedan
förälder
incheckning
5acac57a59
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/Service/CustomerService.php

+ 1 - 1
app/Service/CustomerService.php

@@ -561,7 +561,7 @@ class CustomerService extends Service
         $customer_info_map = [];
         if(! empty($ergs['customer_detail'])){
             $customer_info = CustomerInfo::where('del_time',0)
-                ->where('customer_id',array_column($data['data'],'customer_id'))
+                ->whereIn('customer_id',array_column($data['data'],'id'))
                 ->where('contact_type','contact_info','customer_id')
                 ->get()->toArray();
             $basic_maps = BasicType::where('id',array_unique(array_column($customer_info,'contact_type')))->pluck('title','id')->toArray();