From 985a804b545b17087ba661a9dda3dbea02a88b30 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Fri, 19 Dec 2025 11:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=BC=9A=E9=95=BF=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E5=B7=B2=E5=AD=98=E5=9C=A8=E5=88=99=E4=BD=A9=E6=88=B4?= =?UTF-8?q?=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../red/circle/other/app/listener/BadgeOperateListener.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/BadgeOperateListener.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/BadgeOperateListener.java index 91e16cd9..c6ba59c5 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/BadgeOperateListener.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/BadgeOperateListener.java @@ -1,5 +1,6 @@ package com.red.circle.other.app.listener; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.google.common.collect.Sets; import com.red.circle.component.mq.MessageEventProcess; import com.red.circle.component.mq.MessageEventProcessDescribe; @@ -112,7 +113,10 @@ public class BadgeOperateListener implements MessageListener { .getOne(); if (existBadge != null) { - log.warn("用户已拥有该徽章, 跳过发放, userId: {}, badgeId: {}", userId, badgeId); + BadgeBackpack badgeBackpack = new BadgeBackpack(); + badgeBackpack.setId(existBadge.getId()); + badgeBackpack.setUseProps(Boolean.TRUE); + badgeBackpackService.update(Wrappers.lambdaUpdate(badgeBackpack)); return null; }