添加单个工作经历接口-/cms/userworkexperiences/

修改单个工作经历接口-/cms/userworkexperiences/
删除工作经历-/cms/userworkexperiences
求职期望--单个修改  /cms/appUser/
This commit is contained in:
sh
2025-10-30 18:07:46 +08:00
parent 8b874833b7
commit 6104302de9
4 changed files with 23 additions and 6 deletions

View File

@@ -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);