添加发布时间筛选 和 教育筛选

This commit is contained in:
zk
2026-08-05 11:08:08 +08:00
parent 04b6f94935
commit 9ce99ab3d7
4 changed files with 28 additions and 2 deletions
@@ -4,6 +4,7 @@ import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jiayunet.pojo.PageParam;
import java.time.Instant;
import java.util.List;
/**
@@ -44,4 +45,13 @@ public class JobQueryParam extends PageParam {
/** 公司ID */
private Long companyId;
/** 学历要求列表 0=不限 1=大专 2=本科 3=硕士 4=博士(可多选,null或空=不限制) */
private List<Integer> educations;
/** 发布开始时间(对应 bg_job.expire_at,闭区间) */
private Instant publishStartTime;
/** 发布截止时间(对应 bg_job.expire_at,闭区间) */
private Instant publishEndTime;
}
@@ -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(), param.getCompanyId());
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(), param.getEducations(), param.getPublishStartTime(), param.getPublishEndTime());
// 7. 查询收藏状态
List<Long> jobIds = page.getRecords().stream().map(JobListItemVo::getId).collect(Collectors.toList());