岗位添加人员类型(残疾人或者退伍军人)

This commit is contained in:
sh
2026-01-24 16:22:59 +08:00
parent 735df67c77
commit db11d5cb2a
4 changed files with 22 additions and 5 deletions

View File

@@ -156,6 +156,9 @@ public class ESJobDocument
@ApiModelProperty("所属行政区划") @ApiModelProperty("所属行政区划")
private String regionCode; private String regionCode;
@ApiModelProperty("人员类型 1残疾人,2退伍军人")
private String staffType;
@ApiModelProperty("公司信息") @ApiModelProperty("公司信息")
@IndexField(fieldType = FieldType.TEXT) @IndexField(fieldType = FieldType.TEXT)
private String companyVoJson; private String companyVoJson;

View File

@@ -175,6 +175,9 @@ public class Job extends BaseEntity
@ApiModelProperty("所属行政区划") @ApiModelProperty("所属行政区划")
private String regionCode; private String regionCode;
@ApiModelProperty("人员类型 1残疾人,2退伍军人")
private String staffType;
@TableField(exist = false) @TableField(exist = false)
@ApiModelProperty("岗位联系人列表") @ApiModelProperty("岗位联系人列表")
private List<JobContact> jobContactList; private List<JobContact> jobContactList;

View File

@@ -543,6 +543,9 @@ public class ESJobSearchImpl implements IESJobSearchService
if(!StringUtil.isEmptyOrNull(esJobSearch.getRegionCode())){ if(!StringUtil.isEmptyOrNull(esJobSearch.getRegionCode())){
wrapper.and(x->x.like(ESJobDocument::getRegionCode,esJobSearch.getRegionCode())); wrapper.and(x->x.like(ESJobDocument::getRegionCode,esJobSearch.getRegionCode()));
} }
if(!StringUtil.isEmptyOrNull(esJobSearch.getStaffType())){
wrapper.and(x->x.like(ESJobDocument::getStaffType,esJobSearch.getStaffType()));
}
if(Objects.nonNull(esJobSearch.getOrder())){ if(Objects.nonNull(esJobSearch.getOrder())){
if(esJobSearch.getOrder()==1){ if(esJobSearch.getOrder()==1){
wrapper.orderByDesc(ESJobDocument::getIsHot); wrapper.orderByDesc(ESJobDocument::getIsHot);
@@ -641,6 +644,9 @@ public class ESJobSearchImpl implements IESJobSearchService
if(!StringUtil.isEmptyOrNull(jobQuery.getRegionCode())){ if(!StringUtil.isEmptyOrNull(jobQuery.getRegionCode())){
wrapper.and(x->x.like(ESJobDocument::getRegionCode,jobQuery.getRegionCode())); wrapper.and(x->x.like(ESJobDocument::getRegionCode,jobQuery.getRegionCode()));
} }
if(!StringUtil.isEmptyOrNull(jobQuery.getStaffType())){
wrapper.and(x->x.like(ESJobDocument::getStaffType,jobQuery.getStaffType()));
}
if(Objects.nonNull(jobQuery.getOrder())){ if(Objects.nonNull(jobQuery.getOrder())){
if (jobQuery.getOrder()==2){ if (jobQuery.getOrder()==2){
wrapper.orderByDesc(ESJobDocument::getPostingDate); wrapper.orderByDesc(ESJobDocument::getPostingDate);

View File

@@ -35,6 +35,8 @@
<result property="cover" column="cover" /> <result property="cover" column="cover" />
<result property="jobType" column="job_type" /> <result property="jobType" column="job_type" />
<result property="jobAddress" column="job_address" /> <result property="jobAddress" column="job_address" />
<result property="regionCode" column="region_code" />
<result property="staffType" column="staff_type" />
</resultMap> </resultMap>
@@ -80,6 +82,7 @@
<result property="code" column="code" /> <result property="code" column="code" />
<result property="jobAddress" column="job_address" /> <result property="jobAddress" column="job_address" />
<result property="regionCode" column="region_code" /> <result property="regionCode" column="region_code" />
<result property="staffType" column="staff_type" />
<association property="companyVo" resultMap="CompanyResult"/> <association property="companyVo" resultMap="CompanyResult"/>
</resultMap> </resultMap>
@@ -98,7 +101,7 @@
</resultMap> </resultMap>
<sql id="selectJobVo"> <sql id="selectJobVo">
select job_id, job_title, min_salary, max_salary, education, experience, company_name, job_location, posting_date, vacancies, del_flag, create_by, create_time, update_by, update_time, remark, latitude, longitude, "view", company_id , is_hot ,apply_num,is_publish, description,job_location_area_code,data_source,job_url,job_category,is_explain,explain_url,cover,job_type,job_address from job select job_id, job_title, min_salary, max_salary, education, experience, company_name, job_location, posting_date, vacancies, del_flag, create_by, create_time, update_by, update_time, remark, latitude, longitude, "view", company_id , is_hot ,apply_num,is_publish, description,job_location_area_code,data_source,job_url,job_category,is_explain,explain_url,cover,job_type,job_address,region_code,staff_type from job
</sql> </sql>
<insert id="insertBatchRowWork"> <insert id="insertBatchRowWork">
INSERT INTO row_work ( INSERT INTO row_work (
@@ -128,7 +131,7 @@
job_title, min_salary, max_salary, education, experience, company_name, job_location, job_title, min_salary, max_salary, education, experience, company_name, job_location,
job_location_area_code, posting_date, vacancies, latitude, longitude, "view", company_id, job_location_area_code, posting_date, vacancies, latitude, longitude, "view", company_id,
is_hot, apply_num, description, is_publish, data_source, job_url, remark, del_flag, is_hot, apply_num, description, is_publish, data_source, job_url, remark, del_flag,
create_by, create_time, row_id, job_category,job_type,type,job_address create_by, create_time, row_id, job_category,job_type,type,job_address,region_code,staff_type
) VALUES ) VALUES
<foreach collection="list" item="job" separator=","> <foreach collection="list" item="job" separator=",">
( (
@@ -137,7 +140,8 @@
#{job.vacancies}, #{job.latitude}, #{job.longitude}, #{job.view}, #{job.companyId}, #{job.vacancies}, #{job.latitude}, #{job.longitude}, #{job.view}, #{job.companyId},
#{job.isHot}, #{job.applyNum}, #{job.description}, #{job.isPublish}, #{job.dataSource}, #{job.isHot}, #{job.applyNum}, #{job.description}, #{job.isPublish}, #{job.dataSource},
#{job.jobUrl}, #{job.remark}, #{job.delFlag}, #{job.createBy}, #{job.createTime}, #{job.jobUrl}, #{job.remark}, #{job.delFlag}, #{job.createBy}, #{job.createTime},
#{job.rowId}, #{job.jobCategory},#{job.jobType},#{job.type},#{job.jobAddress} #{job.rowId}, #{job.jobCategory},#{job.jobType},#{job.type},#{job.jobAddress},
#{job.regionCode},#{job.staffType}
) )
</foreach> </foreach>
</insert> </insert>
@@ -355,7 +359,7 @@
job_title, min_salary, max_salary, education, experience, company_name, job_location, job_title, min_salary, max_salary, education, experience, company_name, job_location,
job_location_area_code, posting_date, vacancies, latitude, longitude, "view", company_id, job_location_area_code, posting_date, vacancies, latitude, longitude, "view", company_id,
is_hot, apply_num, description, is_publish, data_source, job_url, remark, del_flag, is_hot, apply_num, description, is_publish, data_source, job_url, remark, del_flag,
create_by, create_time, row_id, job_category,job_type,type,job_address create_by, create_time, row_id, job_category,job_type,type,job_address,region_code,staff_type
) VALUES ) VALUES
<foreach collection="list" item="job" separator=","> <foreach collection="list" item="job" separator=",">
( (
@@ -364,7 +368,8 @@
#{job.vacancies}, #{job.latitude}, #{job.longitude}, #{job.view}, #{job.companyId}, #{job.vacancies}, #{job.latitude}, #{job.longitude}, #{job.view}, #{job.companyId},
#{job.isHot}, #{job.applyNum}, #{job.description}, #{job.isPublish}, #{job.dataSource}, #{job.isHot}, #{job.applyNum}, #{job.description}, #{job.isPublish}, #{job.dataSource},
#{job.jobUrl}, #{job.remark}, #{job.delFlag}, #{job.createBy}, #{job.createTime}, #{job.jobUrl}, #{job.remark}, #{job.delFlag}, #{job.createBy}, #{job.createTime},
#{job.rowId}, #{job.jobCategory},#{job.jobType},#{job.type},#{job.jobAddress} #{job.rowId}, #{job.jobCategory},#{job.jobType},#{job.type},#{job.jobAddress},
#{job.regionCode},#{job.staffType}
) )
</foreach> </foreach>
</insert> </insert>