update
This commit is contained in:
@@ -1097,14 +1097,13 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
|||||||
|
|
||||||
private List<ESJobDocument> sysUserCollection(List<ESJobDocument> jobs){
|
private List<ESJobDocument> sysUserCollection(List<ESJobDocument> jobs){
|
||||||
if(jobs.isEmpty()){return new ArrayList<>();}
|
if(jobs.isEmpty()){return new ArrayList<>();}
|
||||||
// 优先使用 App 端用户,兜底使用 PC 端用户
|
//PC 端用户
|
||||||
Long userId = null;
|
Long userId = null;
|
||||||
if(SiteSecurityUtils.isLogin()){
|
if(SecurityUtils.isLogin()){
|
||||||
userId = SiteSecurityUtils.getUserId();
|
|
||||||
} else if(SecurityUtils.isLogin()){
|
|
||||||
userId = SecurityUtils.getUserId();
|
userId = SecurityUtils.getUserId();
|
||||||
}
|
}
|
||||||
if(userId != null){
|
if(userId != null){
|
||||||
|
log.error("--------userId:" + userId);
|
||||||
//收藏
|
//收藏
|
||||||
Set<Long> collectionIds = jobCollectionMapper.selectList(Wrappers.<JobCollection>lambdaQuery()
|
Set<Long> collectionIds = jobCollectionMapper.selectList(Wrappers.<JobCollection>lambdaQuery()
|
||||||
.eq(JobCollection::getUserId, userId)
|
.eq(JobCollection::getUserId, userId)
|
||||||
|
|||||||
Reference in New Issue
Block a user