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

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("所属行政区划")
private String regionCode;
@ApiModelProperty("人员类型 1残疾人,2退伍军人")
private String staffType;
@ApiModelProperty("公司信息")
@IndexField(fieldType = FieldType.TEXT)
private String companyVoJson;

View File

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

View File

@@ -543,6 +543,9 @@ public class ESJobSearchImpl implements IESJobSearchService
if(!StringUtil.isEmptyOrNull(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(esJobSearch.getOrder()==1){
wrapper.orderByDesc(ESJobDocument::getIsHot);
@@ -641,6 +644,9 @@ public class ESJobSearchImpl implements IESJobSearchService
if(!StringUtil.isEmptyOrNull(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 (jobQuery.getOrder()==2){
wrapper.orderByDesc(ESJobDocument::getPostingDate);