cqpCow 1 سال پیش
والد
کامیت
e8834db57b
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/Service/CustomerService.php

+ 2 - 2
app/Service/CustomerService.php

@@ -541,7 +541,7 @@ class CustomerService extends Service
             $bool = Customer::where('del_time',0)
                 ->where('top_depart_id',$data['top_depart_id'])
                 ->where('title',$data['title'])
-                ->where('model_type',$data['model_type'])
+//                ->where('model_type',$data['model_type'])
                 ->exists();
         }else{
             if(empty($data['id'])) return [false,'ID不能为空'];
@@ -549,7 +549,7 @@ class CustomerService extends Service
                 ->where('id','<>',$data['id'])
                 ->where('top_depart_id',$data['top_depart_id'])
                 ->where('title',$data['title'])
-                ->where('model_type',$data['model_type'])
+//                ->where('model_type',$data['model_type'])
                 ->exists();
         }
         if($bool) return [false,'客户名称不能重复'];