From 9a9f5e73de85dc6bd5133cc246f494e7704fc7ed Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Wed, 10 Sep 2025 16:32:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B5=E6=97=8Fentity=20=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infra/gateway/assembly/NobleVipAbilityAssembly.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/assembly/NobleVipAbilityAssembly.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/assembly/NobleVipAbilityAssembly.java index 878d4e4e..355e9d7c 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/assembly/NobleVipAbilityAssembly.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/assembly/NobleVipAbilityAssembly.java @@ -15,6 +15,7 @@ import java.util.Objects; import java.util.Set; import java.util.stream.Collectors; import lombok.RequiredArgsConstructor; +import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Component; /** @@ -57,8 +58,12 @@ public class NobleVipAbilityAssembly { return CollectionUtils.newArrayList(); } - List ability = nobleVipAbilities.stream().map(noble -> new NobleVipAbility() - .setNobleVipAbility(noble)) + List ability = nobleVipAbilities.stream().map(noble -> { + NobleVipAbility nobleVipAbility = new NobleVipAbility(); + BeanUtils.copyProperties(noble, nobleVipAbility); + nobleVipAbility.setNobleVipAbility(noble); + return nobleVipAbility; + }) .toList(); Set abilitySourceIds = ability.stream().map(NobleVipAbility::noblePropsSourceIds)