From 5ac5dde8a9b5480604f9d4d1283ffc65bc9b09bb Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Sun, 24 Nov 2024 08:26:17 +0800 Subject: [PATCH] =?UTF-8?q?release:=20=E4=BF=AE=E6=94=B9=E5=B7=B2=E9=82=80?= =?UTF-8?q?=E8=AF=B7=E4=BA=BA=E6=95=B0=E7=9A=84=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/luoo/user/service/UserPointLogService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)