fix:member

This commit is contained in:
LAPTOP-7SGDREK0\shiweijun
2025-01-13 15:10:42 +08:00
parent 2cee9e27c4
commit 99b95b76e9
2 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ class MemberService extends BaseService{
$id = (int)$this->request->input('query_id');
$name = $this->request->input('query_name');
$mobile = $this->request->input('query_mobile');
$cityId = $this->request->input('query_city_id');
$cityId = (int)$this->request->input('query_city_id');
$list = $this->userModel
->where('is_del',MemberCode::IS_NO_DEL)
@@ -43,7 +43,7 @@ class MemberService extends BaseService{
$query->where('mobile', $mobile);
})
->when(!empty($cityId), function ($query) use ($cityId) {
$query->where('city_id', $cityId);
$query->where('city', $cityId);
})
->paginate($limit,$this->filed)
->toArray();