Skip to content

Commit

Permalink
๐Ÿ› ๏ธ [Fix] ์ „์ฒด์ผ์ •์—์„œ status delete ์ผ ๋•Œ ์ œ์™ธํ•œ api ์ถ”๊ฐ€ ๋กœ์ง ์ˆ˜์ • #1176 (#1177)
Browse files Browse the repository at this point in the history
Co-authored-by: wonie <[email protected]>
  • Loading branch information
wonies and wonie authored Feb 27, 2025
1 parent 7cc6f7e commit 033eae0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public List<PublicSchedulePeriodRetrieveResDto> retrieveNonPrivateSchedulePeriod
LocalDateTime end) {
validateTimeRange(start, end);
List<PublicSchedule> nonPrivateSchedules = publicScheduleRepository
.findByEndTimeGreaterThanEqualAndStartTimeLessThanEqualAndClassificationNot(
start, end, DetailClassification.PRIVATE_SCHEDULE);
.findByEndTimeGreaterThanEqualAndStartTimeLessThanEqualAndClassificationNotAndStatusNot(
start, end, DetailClassification.PRIVATE_SCHEDULE, ScheduleStatus.DELETE);
return nonPrivateSchedules.stream().map(PublicSchedulePeriodRetrieveResDto::toDto).collect(Collectors.toList());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ public interface PublicScheduleRepository extends JpaRepository<PublicSchedule,
List<PublicSchedule> findByEndTimeGreaterThanEqualAndStartTimeLessThanEqual(LocalDateTime startTime,
LocalDateTime endTime);

List<PublicSchedule> findByEndTimeGreaterThanEqualAndStartTimeLessThanEqualAndClassification(
LocalDateTime startTime, LocalDateTime endTime, DetailClassification classification);

List<PublicSchedule> findByEndTimeGreaterThanEqualAndStartTimeLessThanEqualAndClassificationNot(
LocalDateTime start, LocalDateTime end, DetailClassification classification);
List<PublicSchedule> findByEndTimeGreaterThanEqualAndStartTimeLessThanEqualAndClassificationNotAndStatusNot(
LocalDateTime start, LocalDateTime end, DetailClassification classification, ScheduleStatus scheduleStatus);

Optional<PublicSchedule> findByIdAndStatusNot(Long id, ScheduleStatus status);

Expand Down

0 comments on commit 033eae0

Please sign in to comment.