diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/strategy/RankCountStrategy.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/strategy/RankCountStrategy.java index 0684c4e9..30b95334 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/strategy/RankCountStrategy.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/gift/strategy/RankCountStrategy.java @@ -125,13 +125,13 @@ public class RankCountStrategy implements GiftStrategy { weekKingQueenCountService.incrThisWeekQuantity(runningWater.getSysOrigin(), runningWater.getUserId(), KingQueenType.WEALTH, - getActualAmount(giftValue.getActualAmount(), giftRatio)); + giftValue.getActualAmount().longValue()); // queen runningWater.getAcceptUsers().forEach(accept -> weekKingQueenCountService.incrThisWeekQuantity(runningWater.getSysOrigin(), accept.getAcceptUserId(), KingQueenType.CHARM, - getActualAmount(giftValue.getGiftValue(), giftRatio))); + giftValue.getActualAmount().longValue())); } // 新排行榜累计数据 @@ -429,7 +429,7 @@ public class RankCountStrategy implements GiftStrategy { } // 计算实际金额 - Long actualAmount = getActualAmount(runningWater.getGiftValue().getActualAmount(), giftRatio); + Long actualAmount = runningWater.getGiftValue().getActualAmount().longValue(); // 遍历活动,找到对应的type再累计对应活动类型的数据 for (ActivityConfig activity : ongoingActivities) {