|
@@ -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){
|