|
|
@@ -1037,6 +1037,11 @@ class CustomerService extends Service
|
|
|
// }
|
|
|
}else{
|
|
|
if(empty($data['id'])) return [false,'ID不能为空'];
|
|
|
+ $bool = Customer::where('del_time',0)
|
|
|
+ ->where('id',$data['id'])
|
|
|
+ ->exists();
|
|
|
+ if(! $bool) return [false, '客户不存在或已被删除'];
|
|
|
+
|
|
|
// $bool = Customer::where('del_time',0)
|
|
|
// ->where('id','<>',$data['id'])
|
|
|
// ->where('top_depart_id',$data['top_depart_id'])
|