Skip to content

Commit

Permalink
feat: 동명이인 출석 응답 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
SHEOMM committed Mar 26, 2024
1 parent 8ac0f17 commit 58c05b2
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ public ResponseEntity<AttendResponseDto> attend(HttpServletRequest request, @Req
String authCode = attendRequestDto.getAuthCode();
Long attendeeId = attendRequestDto.getAttendeeId();
LocalDateTime attendanceTime = LocalDateTime.now();
List<AttendeeInfo> attendeeInfos = authCodeService.hasNameSake(authCode, attendeeName);


List<AttendeeInfo> nameSakeAttendees = authCodeService.hasNameSake(authCode, attendeeName);

// 동명이인 응답
if(attendeeInfos.size() > 1){
if(attendeeId == null && nameSakeAttendees.size() > 1){
return ResponseEntity.status(HttpStatus.MULTIPLE_CHOICES).body(
AttendResponseDto.builder()
.attendeeNotes(attendeeInfos)
.attendeeNotes(nameSakeAttendees)
.build()
);
}
Expand Down

0 comments on commit 58c05b2

Please sign in to comment.