岗位表 修改查询相关字段

This commit is contained in:
zk
2026-06-04 10:45:33 +08:00
parent 28179e2a4d
commit e4384b003f
8 changed files with 52 additions and 3 deletions
@@ -19,5 +19,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);
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);
}
@@ -86,6 +86,9 @@ public class Job {
/** 发布日期 */
private Instant expireAt;
/** 脚本名字 */
private String pyname;
/** 状态 0=上架 1=下架 2=已失效 */
private Integer status;
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import org.jiayunet.config.LongListTypeHandler;
import java.time.Instant;
import java.util.List;
/**
@@ -73,4 +74,13 @@ public class JobListItemVo {
/** 岗位状态(0=有效 1=已下架 2=已过期) */
private Integer status;
/** 发布日期 */
private Instant expireAt;
/** 脚本名字 */
private String pyname;
/** 招聘分类 0=校招 1=实习 2=社招 3=其他 */
private Integer recruitCategory;
}
@@ -13,6 +13,9 @@
<result column="required_major_ids" property="requiredMajorIds" typeHandler="org.jiayunet.config.LongListTypeHandler"/>
<result column="major_sensitivity" property="majorSensitivity"/>
<result column="status" property="status"/>
<result column="expire_at" property="expireAt"/>
<result column="pyname" property="pyname"/>
<result column="recruit_category" property="recruitCategory"/>
<result column="company_id" property="companyId"/>
<result column="company_name" property="companyName"/>
<result column="company_short_name" property="companyShortName"/>
@@ -36,6 +39,9 @@
j.required_major_ids,
j.major_sensitivity,
j.status,
j.expire_at,
j.pyname,
j.recruit_category,
c.id AS company_id,
c.name AS company_name,
c.short_name AS company_short_name,
@@ -126,6 +132,10 @@
<if test="employmentType != null">
AND j.employment_type = #{employmentType}
</if>
<!-- 筛选条件:招聘分类 -->
<if test="recruitCategory != null">
AND j.recruit_category = #{recruitCategory}
</if>
ORDER BY j.id DESC
</select>