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

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
@@ -6,6 +6,7 @@ import org.apache.ibatis.annotations.Param;
import org.jiayunet.pojo.po.Job;
import org.jiayunet.pojo.vo.JobListItemVo;
import java.time.Instant;
import java.util.List;
/**
@@ -19,5 +20,5 @@ public interface JobMapper extends CommonMapper<Job> {
/**
* 分页查询岗位列表
*/
Page<JobListItemVo> selectJobPage(Page<JobListItemVo> page, @Param("jobIds") List<Long> jobIds, @Param("statusFilter") List<Integer> statusFilter, @Param("keyword") String keyword, @Param("regionCodes") List<String> regionCodes, @Param("categoryIds") List<Long> categoryIds, @Param("industryIds") List<Long> industryIds, @Param("employmentType") Integer employmentType, @Param("excludeJobIds") List<Long> excludeJobIds, @Param("excludeCompanyIds") List<Long> excludeCompanyIds, @Param("excludeRegionCodes") List<String> excludeRegionCodes, @Param("excludeIndustryIds") List<Long> excludeIndustryIds, @Param("recruitCategory") Integer recruitCategory, @Param("companyTypes") List<String> companyTypes, @Param("companyId") Long companyId);
Page<JobListItemVo> selectJobPage(Page<JobListItemVo> page, @Param("jobIds") List<Long> jobIds, @Param("statusFilter") List<Integer> statusFilter, @Param("keyword") String keyword, @Param("regionCodes") List<String> regionCodes, @Param("categoryIds") List<Long> categoryIds, @Param("industryIds") List<Long> industryIds, @Param("employmentType") Integer employmentType, @Param("excludeJobIds") List<Long> excludeJobIds, @Param("excludeCompanyIds") List<Long> excludeCompanyIds, @Param("excludeRegionCodes") List<String> excludeRegionCodes, @Param("excludeIndustryIds") List<Long> excludeIndustryIds, @Param("recruitCategory") Integer recruitCategory, @Param("companyTypes") List<String> companyTypes, @Param("companyId") Long companyId, @Param("educations") List<Integer> educations, @Param("publishStartTime") Instant publishStartTime, @Param("publishEndTime") Instant publishEndTime);
}
@@ -153,6 +153,21 @@
<if test="companyId != null">
AND j.company_id = #{companyId}
</if>
<!-- 筛选条件:学历要求(可多选) -->
<if test="educations != null and educations.size() > 0">
AND j.education IN
<foreach collection="educations" item="education" open="(" separator="," close=")">
#{education}
</foreach>
</if>
<!-- 筛选条件:发布开始时间 -->
<if test="publishStartTime != null">
AND j.expire_at &gt;= #{publishStartTime}
</if>
<!-- 筛选条件:发布截止时间 -->
<if test="publishEndTime != null">
AND j.expire_at &lt;= #{publishEndTime}
</if>
ORDER BY j.id DESC
</select>