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)