crm反改询单归属
This commit is contained in:
@@ -444,6 +444,8 @@ class CustomerController extends BaseController
|
||||
'user_his' => $userId,
|
||||
'user_id' => 0,
|
||||
]);
|
||||
|
||||
CustomerService::inquiryUpdate($customer);
|
||||
}
|
||||
|
||||
//软删除
|
||||
@@ -562,13 +564,8 @@ class CustomerController extends BaseController
|
||||
'user_his' => 0,
|
||||
'user_id' => $userId,
|
||||
]);
|
||||
if (!empty($customer->sn) && $customer->type==1){
|
||||
$inquiryLog = InquiryLog::where('order_no', $customer->sn)->first();
|
||||
if (!empty($inquiryLog)) {
|
||||
$inquiryLog->recipient = $userId;
|
||||
$inquiryLog->save();
|
||||
}
|
||||
}
|
||||
|
||||
CustomerService::inquiryUpdate($customer, $data['user_id']);
|
||||
Db::commit();
|
||||
} catch (\Throwable $e) {
|
||||
Db::rollback();
|
||||
@@ -609,13 +606,8 @@ class CustomerController extends BaseController
|
||||
'user_his' => $item->user_id,
|
||||
'user_id' => $user['id'],
|
||||
]);
|
||||
if (!empty($customer->sn) && $customer->type==1){
|
||||
$inquiryLog = InquiryLog::where('order_no', $customer->sn)->first();
|
||||
if (!empty($inquiryLog)) {
|
||||
$inquiryLog->recipient = $userId;
|
||||
$inquiryLog->save();
|
||||
}
|
||||
}
|
||||
|
||||
CustomerService::inquiryUpdate($customer,$userId);
|
||||
|
||||
$item->restore();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user