api/expert_manage/getList 加国家筛选

解析简历信息
This commit is contained in:
wyn
2026-06-08 11:00:54 +08:00
parent 1d54946fef
commit aee9b00c6f
5 changed files with 100 additions and 3 deletions

View File

@@ -39,6 +39,7 @@ class ExpertManage extends Base
$field = trim(isset($data['field']) ? $data['field'] : '');
$state = isset($data['state']) ? $data['state'] : '-1';
$source = trim(isset($data['source']) ? $data['source'] : '');
$country = trim(isset($data['country']) ? $data['country'] : '');
$page = max(1, intval(isset($data['pageIndex']) ? $data['pageIndex'] : 1));
$pageSize = max(1, intval(isset($data['pageSize']) ? $data['pageSize'] : 20));
@@ -74,6 +75,10 @@ class ExpertManage extends Base
$query->where('e.source', $source);
$countQuery->where('e.source', $source);
}
if ($country !== '') {
$query->where('e.country', $country);
$countQuery->where('e.country', $country);
}
// $countQuery = clone $query;
// $total = $countQuery->distinct('e.expert_id')->count();