This commit is contained in:
张良(004796)
2024-01-08 19:13:01 +08:00
parent fad404fe58
commit 2010eb4133
11 changed files with 249 additions and 10 deletions

View File

@@ -39,13 +39,9 @@ public class UserFollowServiceImpl extends ServiceImpl<UserFollowMapper, UserFol
@Override
public boolean checkStar(Long userId,Long followUserId){
long count = this.count(Wrappers.lambdaQuery(UserFollow.class)
return this.exists(Wrappers.lambdaQuery(UserFollow.class)
.eq(UserFollow::getFollowUser, followUserId)
.eq(UserFollow::getUserId, userId));
if(count > 0){
return true;
}
return false;
}
@Override