添加es中岗位联系方式

This commit is contained in:
chenshaohua
2026-07-07 18:48:01 +08:00
parent 4204ad12a5
commit 633d563f1e
3 changed files with 17 additions and 3 deletions

View File

@@ -161,6 +161,10 @@ public class ESJobDocument
@IndexField(fieldType = FieldType.TEXT)
private String companyVoJson;
@ApiModelProperty("岗位联系人信息")
@IndexField(fieldType = FieldType.TEXT)
private String jobContactVoJson;
@ApiModelProperty("是否发布 0未发布 1发布")
private Integer isPublish;
}

View File

@@ -188,8 +188,11 @@ public class ESJobSearchImpl implements IESJobSearchService
esJobDocument.setJobCategory(resolveJobCategoryLabel(job.getJobCategory()));
//类型转换导致赋值问题,重新赋值
esJobDocument.setScale(org.apache.commons.lang3.StringUtils.isNotEmpty(job.getScale()) ? Integer.parseInt(job.getScale()) : 0);
//企业信息
CompanyVo vo=job.getCompanyVo();
esJobDocument.setCompanyVoJson(JSON.toJSONString(vo));
//岗位联系人
esJobDocument.setJobContactVoJson(JSON.toJSONString(job.getJobContactList()));
esJobDocument.setAppJobUrl("https://www.xjksly.cn/app#/packageA/pages/post/post?jobId="+ job.getJobId());
if(!StringUtil.isEmptyOrNull(job.getScale())){
esJobDocument.setScale(Integer.valueOf(job.getScale()));