cqp 3 kuukautta sitten
vanhempi
commit
6364d09225
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/Service/TSpaceService.php

+ 1 - 1
app/Service/TSpaceService.php

@@ -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 . '下有个多个车架号,请去质保查询功能按需查询质保信息'];