job表添加region_code字段
This commit is contained in:
@@ -153,6 +153,9 @@ public class ESJobDocument
|
|||||||
@ApiModelProperty("工作地点")
|
@ApiModelProperty("工作地点")
|
||||||
private String jobAddress;
|
private String jobAddress;
|
||||||
|
|
||||||
|
@ApiModelProperty("工作地点")
|
||||||
|
private String regionCode;
|
||||||
|
|
||||||
@ApiModelProperty("公司信息")
|
@ApiModelProperty("公司信息")
|
||||||
@IndexField(fieldType = FieldType.TEXT)
|
@IndexField(fieldType = FieldType.TEXT)
|
||||||
private String companyVoJson;
|
private String companyVoJson;
|
||||||
|
|||||||
@@ -172,6 +172,9 @@ public class Job extends BaseEntity
|
|||||||
@ApiModelProperty("工作地点")
|
@ApiModelProperty("工作地点")
|
||||||
private String jobAddress;
|
private String jobAddress;
|
||||||
|
|
||||||
|
@ApiModelProperty("所属行政区划")
|
||||||
|
private String regionCode;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty("岗位联系人列表")
|
@ApiModelProperty("岗位联系人列表")
|
||||||
private List<JobContact> jobContactList;
|
private List<JobContact> jobContactList;
|
||||||
|
|||||||
@@ -540,6 +540,9 @@ public class ESJobSearchImpl implements IESJobSearchService
|
|||||||
if(!StringUtil.isEmptyOrNull(esJobSearch.getJobLocation())){
|
if(!StringUtil.isEmptyOrNull(esJobSearch.getJobLocation())){
|
||||||
wrapper.and(x->x.like(ESJobDocument::getJobLocation,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(Objects.nonNull(esJobSearch.getOrder())){
|
||||||
if(esJobSearch.getOrder()==1){
|
if(esJobSearch.getOrder()==1){
|
||||||
wrapper.orderByDesc(ESJobDocument::getIsHot);
|
wrapper.orderByDesc(ESJobDocument::getIsHot);
|
||||||
@@ -635,6 +638,9 @@ public class ESJobSearchImpl implements IESJobSearchService
|
|||||||
if(!StringUtil.isEmptyOrNull(jobQuery.getJobLocation())){
|
if(!StringUtil.isEmptyOrNull(jobQuery.getJobLocation())){
|
||||||
wrapper.and(x->x.like(ESJobDocument::getJobLocation,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(Objects.nonNull(jobQuery.getOrder())){
|
||||||
if (jobQuery.getOrder()==2){
|
if (jobQuery.getOrder()==2){
|
||||||
wrapper.orderByDesc(ESJobDocument::getPostingDate);
|
wrapper.orderByDesc(ESJobDocument::getPostingDate);
|
||||||
|
|||||||
@@ -79,6 +79,7 @@
|
|||||||
<result property="companyNature" column="company_nature" />
|
<result property="companyNature" column="company_nature" />
|
||||||
<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" />
|
||||||
|
|
||||||
<association property="companyVo" resultMap="CompanyResult"/>
|
<association property="companyVo" resultMap="CompanyResult"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|||||||
Reference in New Issue
Block a user