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; }