This commit is contained in:
2025-07-17 09:36:46 +08:00
parent 9a13c23788
commit 416050a387
9 changed files with 156 additions and 98 deletions
+12
View File
@@ -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;
}
}