crm
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace app\crm\service;
|
||||
|
||||
use app\crm\logic\CustomerLogic;
|
||||
use app\crm\model\Customer;
|
||||
|
||||
class CustomerService
|
||||
@@ -25,4 +26,15 @@ class CustomerService
|
||||
// }
|
||||
return $user;
|
||||
}
|
||||
|
||||
|
||||
public function detail($params)
|
||||
{
|
||||
$id =$params['id'];
|
||||
$customer = Customer::with('tags')->select('id', 'user_id', 'grade', 'channel_id', 'car_type_id', 'country_id', 'magnitude', 'email', 'phone', 'WhatsApp', 'contacts', 'describe', 'address', 'lat', 'lng', 'follow_next', 'follow_remark', 'sex')
|
||||
->where('id', $id)
|
||||
->first();
|
||||
|
||||
return $customer;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user