客户重复检测

This commit is contained in:
2025-08-25 18:13:16 +08:00
parent 97e19834fd
commit 7b280afd72
5 changed files with 53 additions and 6 deletions
+2
View File
@@ -339,6 +339,7 @@ class CustomerService
$query= Customer::whereIn('id',explode(',',$customerId));
$customer = $query->get();
$user = User::where(['id' => $userId])->first();
foreach ($customer as $item) {
//记录客户关系变化
@@ -357,6 +358,7 @@ class CustomerService
}
$data = [
'user_id' => $userId,
'corp_id' => $user->corp_id,
'obtain' => time(),
];
$res = $query->update($data);