job表添加region_code字段

This commit is contained in:
sh
2026-01-22 16:07:59 +08:00
parent fe32de4791
commit 01ad333483
4 changed files with 13 additions and 0 deletions

View File

@@ -153,6 +153,9 @@ public class ESJobDocument
@ApiModelProperty("工作地点")
private String jobAddress;
@ApiModelProperty("工作地点")
private String regionCode;
@ApiModelProperty("公司信息")
@IndexField(fieldType = FieldType.TEXT)
private String companyVoJson;

View File

@@ -172,6 +172,9 @@ public class Job extends BaseEntity
@ApiModelProperty("工作地点")
private String jobAddress;
@ApiModelProperty("所属行政区划")
private String regionCode;
@TableField(exist = false)
@ApiModelProperty("岗位联系人列表")
private List<JobContact> jobContactList;

View File

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

View File

@@ -79,6 +79,7 @@
<result property="companyNature" column="company_nature" />
<result property="code" column="code" />
<result property="jobAddress" column="job_address" />
<result property="regionCode" column="region_code" />
<association property="companyVo" resultMap="CompanyResult"/>
</resultMap>