|
@@ -869,7 +869,7 @@ class TSpaceService extends Service
|
|
|
public function searchWarrantyCommon($customer_contact){
|
|
|
$vinCount = Warranty::where('del_time', 0)
|
|
|
->where('customer_contact', $customer_contact)
|
|
|
- ->whereNotNull('vin_no')
|
|
|
+ ->where('vin_no', '<>', '')
|
|
|
->distinct()
|
|
|
->count('vin_no');
|
|
|
if($vinCount > 1) return [false, '手机号:' . $customer_contact . '下有个多个车架号,请去质保查询功能按需查询质保信息'];
|