Skip to content

Commit

Permalink
style: left, right -> startAt, endAt
Browse files Browse the repository at this point in the history
  • Loading branch information
suw0n committed Jul 16, 2024
1 parent 02f8620 commit 757c72f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public List<Bus> getAllByDate(LocalDate date) {
return repository.findAllByLeaveTime(date);
}

public List<Bus> getValid(LocalDateTime left, LocalDateTime right) {
return repository.findBusByLeaveTimeBetween(left, right);
public List<Bus> getValid(LocalDateTime startAt, LocalDateTime endAt) {
return repository.findBusByLeaveTimeBetween(startAt, endAt);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface BusRepository extends JpaRepository<Bus, Integer> {
@Query("select b from bus b where b.id = :id")
Optional<Bus> findByIdWithPessimisticLock(@Param("id") int id);

List<Bus> findBusByLeaveTimeBetween(LocalDateTime leaveTime1, LocalDateTime localTime2);
List<Bus> findBusByLeaveTimeBetween(LocalDateTime startAt, LocalDateTime endAt);

List<Bus> findAllByOrderByIdDesc(Pageable pageable);

Expand Down

0 comments on commit 757c72f

Please sign in to comment.