岗位添加人员类型(残疾人或者退伍军人)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user