From e6e51d5584a58dd3dfca6b8e1709c1491a0e2515 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 25 Dec 2025 15:37:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BC=E7=89=A9=E5=88=97=E8=A1=A8=E5=B0=8F?= =?UTF-8?q?=E6=95=B0=E7=82=B9=E6=8A=B9=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/command/gift/query/SysGiftConfigListQryExe.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/gift/query/SysGiftConfigListQryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/gift/query/SysGiftConfigListQryExe.java index 741b5f16..9bc2f327 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/gift/query/SysGiftConfigListQryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/gift/query/SysGiftConfigListQryExe.java @@ -12,6 +12,7 @@ import com.red.circle.other.inner.model.dto.material.GiftConfigDTO; import com.red.circle.tool.core.collection.CollectionUtils; import com.red.circle.tool.core.text.StringUtils; +import java.math.RoundingMode; import java.util.ArrayList; import java.util.List; import java.util.Set; @@ -61,8 +62,9 @@ public class SysGiftConfigListQryExe { List giftConfigs = giftAppConvertor.toListGiftConfigCO( giftConfigCaches.stream() .filter(giftConfigCache -> - StringUtils.isBlank(giftConfigCache.getRegions()) || giftConfigCache.getRegions().contains(regionId != null ? regionId : "null") - ).toList()); + StringUtils.isBlank(giftConfigCache.getRegions()) || giftConfigCache.getRegions().contains(regionId != null ? regionId : "null")) + .map(giftConfigDTO -> giftConfigDTO.setGiftCandy(giftConfigDTO.getGiftCandy().setScale(0, RoundingMode.DOWN))) + .toList()); if (!userIds.isEmpty()) { giftConfigs.forEach(item -> {