Skip to content

Commit

Permalink
Merge pull request #46 from Likelion-Inner-Join/fix/application
Browse files Browse the repository at this point in the history
[Fix] meeting start time으로만 지원자 면접시간 수정가능하게 변경
  • Loading branch information
luna156 authored Dec 26, 2024
2 parents cf0ad22 + bda9e18 commit e7a7e9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public class ApplicationPutRequestDto {
private ResultType meetingResult;
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
private LocalDateTime meetingStartTime;
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
private LocalDateTime meetingEndTime;
// @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
// private LocalDateTime meetingEndTime;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
public interface MeetingTimeRepository extends JpaRepository<MeetingTime, Long> {
List<MeetingTime> findByRecruiting(Recruiting recruiting);
List<MeetingTime> findByRecruitingId(Long recruitingId);
MeetingTime findByMeetingStartTimeAndRecruiting(LocalDateTime startTime, Recruiting recruiting);
MeetingTime findByMeetingStartTimeAndMeetingEndTimeAndRecruiting(LocalDateTime meetingStartTime, LocalDateTime meetingEndTime, Recruiting recruiting);
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@ public ApplicationDto updateApplication(
throw new UnauthorizedException("권한이 없습니다.");
}

MeetingTime meetingTime = meetingTimeRepository.findByMeetingStartTimeAndMeetingEndTimeAndRecruiting(
MeetingTime meetingTime = meetingTimeRepository.findByMeetingStartTimeAndRecruiting(
applicationPutRequestDto.getMeetingStartTime(),
applicationPutRequestDto.getMeetingEndTime(),
application.getRecruiting()
);
if(meetingTime == null) {
Expand Down

0 comments on commit e7a7e9e

Please sign in to comment.