统计不生效问题解决
This commit is contained in:
+6
-2
@@ -41,8 +41,12 @@ public class UserServiceImpl implements UserService {
|
||||
.type(user.getType())
|
||||
.status(user.getStatus())
|
||||
.articleCount(0)
|
||||
.followerCount(0)
|
||||
.followingCount(0)
|
||||
.followerCount(Math.toIntExact(userFollowMapper.selectCount(
|
||||
new LambdaQueryWrapper<UserFollow>()
|
||||
.eq(UserFollow::getFolloweeId, userId))))
|
||||
.followingCount(Math.toIntExact(userFollowMapper.selectCount(
|
||||
new LambdaQueryWrapper<UserFollow>()
|
||||
.eq(UserFollow::getFollowerId, userId))))
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user