添加es中岗位联系方式
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user