We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c23dee2 commit 532e5aeCopy full SHA for 532e5ae
backend/src/main/java/com/ai/lawyer/domain/poll/repository/PollVoteRepositoryImpl.java
@@ -97,7 +97,8 @@ public List<PollStaticsDto> countStaticsByPollOptionIds(List<Long> pollOptionIds
97
.fetch();
98
return tuples.stream()
99
.map(t -> {
100
- String gender = t.get(1, String.class);
+ Member.Gender genderEnum = t.get(1, Member.Gender.class);
101
+ String gender = genderEnum != null ? genderEnum.name() : "기타";
102
Integer age = t.get(2, Integer.class);
103
String ageGroup = getAgeGroup(age);
104
Long voteCount = t.get(3, Long.class);
0 commit comments