修改屏蔽企业查询岗位的判断
This commit is contained in:
@@ -687,9 +687,9 @@ public class ESJobSearchImpl implements IESJobSearchService
|
|||||||
Integer pageSize = jobQuery.getPageSize();
|
Integer pageSize = jobQuery.getPageSize();
|
||||||
LambdaEsQueryWrapper<ESJobDocument> wrapper = new LambdaEsQueryWrapper<>();
|
LambdaEsQueryWrapper<ESJobDocument> wrapper = new LambdaEsQueryWrapper<>();
|
||||||
if(SiteSecurityUtils.isLogin()){
|
if(SiteSecurityUtils.isLogin()){
|
||||||
AppUser appUser = appUserService.selectAppUserByUserId(SiteSecurityUtils.getUserId());
|
//AppUser appUser = appUserService.selectAppUserByUserId(SiteSecurityUtils.getUserId());
|
||||||
List<Long> jobs=appUserBlockCompanyMapper.selectBlockCompanyIdsByUserIdJobs(appUser.getUserId());
|
List<Long> jobs=appUserBlockCompanyMapper.selectBlockCompanyIdsByUserIdJobs(SiteSecurityUtils.getUserId());
|
||||||
if (ListUtil.isListEmptyOrNull(jobs)) {
|
if (!ListUtil.isListEmptyOrNull(jobs)) {
|
||||||
wrapper.not().in(ESJobDocument::getJobId, jobs);
|
wrapper.not().in(ESJobDocument::getJobId, jobs);
|
||||||
}
|
}
|
||||||
// if(!ListUtil.isEmptyOrNull(appUser.getJobTitle())){
|
// if(!ListUtil.isEmptyOrNull(appUser.getJobTitle())){
|
||||||
|
|||||||
Reference in New Issue
Block a user