From dba6eb7df0360d603be71009c3ceae0bc70f4a67 Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Wed, 31 Jul 2024 14:18:34 +0800 Subject: [PATCH] =?UTF-8?q?release:=20=E7=A7=AF=E5=88=86=E6=8A=BD=E5=A5=96?= =?UTF-8?q?=E6=89=A3=E9=99=A4=E5=88=86=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/luoo/user/service/LotteryService.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/luoo_user/src/main/java/com/luoo/user/service/LotteryService.java b/luoo_user/src/main/java/com/luoo/user/service/LotteryService.java index 8684c6a..6f259fc 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/LotteryService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/LotteryService.java @@ -55,6 +55,8 @@ public class LotteryService { public static final String POINTS_WILL_BE_RETURNED = "抽奖返积分"; + public static final String LOTTERY_POINTS_TYPE = "积分抽奖"; + private final LotteryDao lotteryDao; private final JwtUtil jwtUtil; @@ -299,6 +301,17 @@ public class LotteryService { lotteryUserDao.save(lotteryUser); + UserPointLog userPointLog = UserPointLog.builder() + .id(String.valueOf(idWorker.nextId())) + .type(PointEnums.TASK_POINT_TYPE_REDUCE.getCode()) + .createUser(lotteryUser.getUserId()) + .taskPointId(null) + .description(LOTTERY_POINTS_TYPE) + .userId(lotteryUser.getUserId()) + .score(lottery.getPoint()) + .build(); + rabbitTemplate.convertAndSend("pointLog", userPointLog); + } /**