From a2abfde470249898b0db5703fe2f4dd47dff1daf Mon Sep 17 00:00:00 2001 From: liberhe <411497616@qq.com> Date: Wed, 13 Dec 2023 16:25:34 +0800 Subject: [PATCH] copy property bug --- src/main/java/com/dl/officialsite/member/MemberService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dl/officialsite/member/MemberService.java b/src/main/java/com/dl/officialsite/member/MemberService.java index 86652f4a..aee5931d 100644 --- a/src/main/java/com/dl/officialsite/member/MemberService.java +++ b/src/main/java/com/dl/officialsite/member/MemberService.java @@ -38,7 +38,7 @@ public MemberWithTeam getMemberWithTeamInfoByAddress(String address) { if(member.isPresent()) { MemberWithTeam memberWithTeam = new MemberWithTeam(); - BeanUtils.copyProperties(member, memberWithTeam); + BeanUtils.copyProperties(member.get(), memberWithTeam); ArrayList teams = new ArrayList(); List teamMembers = teamMemberRepository.findByMemberId(member.get().getId());