diff --git a/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java b/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java index b92e9ac..e592c6d 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java @@ -395,11 +395,13 @@ public class UserPointLogService { taskPointIds.add(TaskPointIdConstants.INVITE_USER_10); taskPointIds.add(TaskPointIdConstants.INVITE_USER_20); + // 已获取的积分列表 List userPointLogByTaskPointIdInAndUserId = userPointLogDao.findUserPointLogByTaskPointIdInAndUserId( taskPointIds, userId); + // 已邀请的人数 + List alreadyInviteList = userPointLogDao.findUserPointLogByUserIdAndTaskPointId(userId, TaskPointIdConstants.NEW_USER_INVITE); UserInvitationLogVO userInvitationLogVO = new UserInvitationLogVO(); - userInvitationLogVO.setNum(userPointLogByTaskPointIdInAndUserId.isEmpty() ? 0 - : userPointLogByTaskPointIdInAndUserId.size()); + userInvitationLogVO.setNum(alreadyInviteList.isEmpty() ? 0 : alreadyInviteList.size()); userInvitationLogVO.setPoint(userPointLogByTaskPointIdInAndUserId.isEmpty() ? 0 : userPointLogByTaskPointIdInAndUserId.stream().map(UserPointLog::getScore) .reduce(0, Integer::sum)