cqpCow 1 vuosi sitten
vanhempi
commit
e46fc61746
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      app/Service/CustomerService.php

+ 2 - 1
app/Service/CustomerService.php

@@ -562,7 +562,8 @@ class CustomerService extends Service
         if(! empty($ergs['customer_detail'])){
             $customer_info = CustomerInfo::where('del_time',0)
                 ->whereIn('customer_id',array_column($data['data'],'id'))
-                ->where('contact_type','contact_info','customer_id')
+                ->where('contact_type','>',0)
+                ->select('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();
             foreach ($customer_info as $key=>$value){