123
This commit is contained in:
@@ -65,6 +65,7 @@ public class UserFollowServiceImpl extends ServiceImpl<UserFollowMapper, UserFol
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void batchStar(BatchStarReq batchStarReq) {
|
||||
if(CollectionUtils.isEmpty(batchStarReq.getToUserIds())){
|
||||
return;
|
||||
@@ -84,6 +85,9 @@ public class UserFollowServiceImpl extends ServiceImpl<UserFollowMapper, UserFol
|
||||
}
|
||||
realStarUsers.add(starUser.getId());
|
||||
}
|
||||
if(realStarUsers.isEmpty()){
|
||||
return;
|
||||
}
|
||||
this.remove(Wrappers.lambdaQuery(UserFollow.class)
|
||||
.eq(UserFollow::getUserId,fromUserId)
|
||||
.in(UserFollow::getFollowUser, realStarUsers));
|
||||
|
||||
Reference in New Issue
Block a user