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 220b95a..cda9c5a 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 @@ -68,12 +68,9 @@ public class UserPointLogService { private final LotteryUserDao lotteryUserDao; - private final UserPointLogService userPointLogService; - public UserPointLogService(UserPointLogDao userPointLogDao, IdWorker idWorker, JwtUtil jwtUtil, TaskPointDao taskPointDao, RabbitTemplate rabbitTemplate, UserInfoDao userInfoDao, - JPAQueryFactory jpaQueryFactory, LotteryUserDao lotteryUserDao, - UserPointLogService userPointLogService) { + JPAQueryFactory jpaQueryFactory, LotteryUserDao lotteryUserDao) { this.userPointLogDao = userPointLogDao; this.idWorker = idWorker; this.jwtUtil = jwtUtil; @@ -82,7 +79,6 @@ public class UserPointLogService { this.userInfoDao = userInfoDao; this.jpaQueryFactory = jpaQueryFactory; this.lotteryUserDao = lotteryUserDao; - this.userPointLogService = userPointLogService; } private TaskPointService taskPointService; @@ -250,7 +246,7 @@ public class UserPointLogService { List userPointLogsByUserIdAndTaskPointId3 = userPointLogDao.findUserPointLogsByUserIdAndTaskPointId( TaskPointIdConstants.INVITE_USER_3, userPointLog.getUserId()); if (userPointLogsByUserIdAndTaskPointId3.isEmpty()) { - userPointLogService.addByTaskDailyAndUserId( + addByTaskDailyAndUserId( TaskPointIdConstants.INVITE_USER_3, userPointLog.getUserId()); } } @@ -259,7 +255,7 @@ public class UserPointLogService { List userPointLogsByUserIdAndTaskPointId6 = userPointLogDao.findUserPointLogsByUserIdAndTaskPointId( TaskPointIdConstants.INVITE_USER_6, userPointLog.getUserId()); if (userPointLogsByUserIdAndTaskPointId6.isEmpty()) { - userPointLogService.addByTaskDailyAndUserId( + addByTaskDailyAndUserId( TaskPointIdConstants.INVITE_USER_6, userPointLog.getUserId()); } } @@ -268,7 +264,7 @@ public class UserPointLogService { List userPointLogsByUserIdAndTaskPointId10 = userPointLogDao.findUserPointLogsByUserIdAndTaskPointId( TaskPointIdConstants.INVITE_USER_10, userPointLog.getUserId()); if (userPointLogsByUserIdAndTaskPointId10.isEmpty()) { - userPointLogService.addByTaskDailyAndUserId( + addByTaskDailyAndUserId( TaskPointIdConstants.INVITE_USER_10, userPointLog.getUserId()); } } @@ -277,7 +273,7 @@ public class UserPointLogService { List userPointLogsByUserIdAndTaskPointId20 = userPointLogDao.findUserPointLogsByUserIdAndTaskPointId( TaskPointIdConstants.INVITE_USER_20, userPointLog.getUserId()); if (userPointLogsByUserIdAndTaskPointId20.isEmpty()) { - userPointLogService.addByTaskDailyAndUserId( + addByTaskDailyAndUserId( TaskPointIdConstants.INVITE_USER_20, userPointLog.getUserId()); } }