岗位列表添加参数公司id

This commit is contained in:
zk
2026-07-31 15:58:30 +08:00
parent f6927c3327
commit ce801c1cf7
4 changed files with 9 additions and 2 deletions
@@ -41,4 +41,7 @@ public class JobQueryParam extends PageParam {
/** 岗位状态过滤(0=有效 1=已下架 2=已过期,可多选,null或空=查所有) */
private List<Integer> statusFilter;
/** 公司ID */
private Long companyId;
}
@@ -127,7 +127,7 @@ public class JobService {
// 6. 执行分页查询
Page<JobListItemVo> pageParam = param.toPage();
pageParam.setSearchCount(false);
Page<JobListItemVo> page = jobMapper.selectJobPage(pageParam, param.getJobIds(),param.getStatusFilter(), param.getKeyword(), expandedRegionCodes, expandedCategoryIds, expandedIndustryIds, param.getEmploymentType(), excludeJobIds, excludeCompanyIds, excludeRegionCodes, excludeIndustryIds, param.getRecruitCategory(), param.getCompanyTypes());
Page<JobListItemVo> page = jobMapper.selectJobPage(pageParam, param.getJobIds(),param.getStatusFilter(), param.getKeyword(), expandedRegionCodes, expandedCategoryIds, expandedIndustryIds, param.getEmploymentType(), excludeJobIds, excludeCompanyIds, excludeRegionCodes, excludeIndustryIds, param.getRecruitCategory(), param.getCompanyTypes(), param.getCompanyId());
// 7. 查询收藏状态
List<Long> jobIds = page.getRecords().stream().map(JobListItemVo::getId).collect(Collectors.toList());