添加单个工作经历接口-/cms/userworkexperiences/
修改单个工作经历接口-/cms/userworkexperiences/ 删除工作经历-/cms/userworkexperiences 求职期望--单个修改 /cms/appUser/
This commit is contained in:
@@ -833,7 +833,8 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
||||
|
||||
@Override
|
||||
public List<ESJobDocument> sysRecommend(ESJobSearch esJobSearch) {
|
||||
String jobKey=CacheConstants.SYS_JOB_IDS+ SecurityUtils.getUserId();
|
||||
Long userId=SecurityUtils.isLogin()?SecurityUtils.getUserId():null;
|
||||
String jobKey=CacheConstants.SYS_JOB_IDS+ userId;
|
||||
RedisCache redisCache = SpringUtils.getBean(RedisCache.class);
|
||||
JSONArray cacheObject = redisCache.getCacheObject(jobKey);
|
||||
List<Long> jobList = new ArrayList<>();
|
||||
@@ -843,7 +844,10 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
||||
}else {
|
||||
jobList = cacheObject.toList(Long.class);
|
||||
}
|
||||
AppUser appUser=appUserService.selectAppuserByIdcard(RoleUtils.getCurrentUseridCard());
|
||||
AppUser appUser=null;
|
||||
if(userId!=null){
|
||||
appUser=appUserService.selectAppuserByIdcard(RoleUtils.getCurrentUseridCard());
|
||||
}
|
||||
|
||||
//从es中查询
|
||||
List<ESJobDocument> jobListResult = iesJobSearchService.selectSysTextListExceptJobId(esJobSearch,jobList,appUser);
|
||||
|
||||
Reference in New Issue
Block a user