推荐岗位接口——添加查询条件,是否发布
This commit is contained in:
@@ -64,9 +64,6 @@ public class ESJobSearchImpl implements IESJobSearchService
|
||||
// 等待锁时间(5分钟,避免无限等待)
|
||||
private static final Integer WAIT_LOCK_SECONDS = 10;//300
|
||||
|
||||
|
||||
@Autowired
|
||||
private BussinessDictDataServiceImpl bussinessDictDataServicel;
|
||||
Logger logger = LoggerFactory.getLogger(JobServiceImpl.class);
|
||||
/**
|
||||
* 项目启动时,初始化索引及数据
|
||||
@@ -574,6 +571,9 @@ public class ESJobSearchImpl implements IESJobSearchService
|
||||
if(!StringUtil.isEmptyOrNull(esJobSearch.getJobStatus())){
|
||||
wrapper.and(x->x.eq(ESJobDocument::getJobStatus,esJobSearch.getJobStatus()));
|
||||
}
|
||||
if(Objects.nonNull(esJobSearch.getIsPublish())){
|
||||
wrapper.and(x->x.eq(ESJobDocument::getIsPublish,esJobSearch.getIsPublish()));
|
||||
}
|
||||
if(Objects.nonNull(esJobSearch.getOrder())){
|
||||
if(esJobSearch.getOrder()==1){
|
||||
wrapper.orderByDesc(ESJobDocument::getIsHot);
|
||||
@@ -688,6 +688,9 @@ public class ESJobSearchImpl implements IESJobSearchService
|
||||
if(!StringUtil.isEmptyOrNull(jobQuery.getJobStatus())){
|
||||
wrapper.and(x->x.eq(ESJobDocument::getJobStatus,jobQuery.getJobStatus()));
|
||||
}
|
||||
if(Objects.nonNull(jobQuery.getIsPublish())){
|
||||
wrapper.and(x->x.eq(ESJobDocument::getIsPublish,jobQuery.getIsPublish()));
|
||||
}
|
||||
if(Objects.nonNull(jobQuery.getOrder())){
|
||||
if (jobQuery.getOrder()==2){
|
||||
wrapper.orderByDesc(ESJobDocument::getPostingDate);
|
||||
|
||||
Reference in New Issue
Block a user