Skip to content

Commit

Permalink
fix: 생성일 searchCondition 쿼리 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna committed Jan 9, 2024
1 parent 24e5a42 commit da2525a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ private BooleanExpression[] createFilterCondition(BookingSearchCondition conditi
booking.payment.status.ne(PaymentStatus.READY),
condition.getId() == null ? null : booking.id.eq(condition.getId()),
condition.getStatus() == null ? null : booking.status.eq(BookingStatus.fromDescription(condition.getStatus())),
createdAtGoe(condition.getMaxCreatedAt() == null ? null : condition.getMaxCreatedAt()),
createdAtLoe(condition.getMinCreatedAt() == null ? null : condition.getMinCreatedAt())
createdAtGoe(condition.getMinCreatedAt() == null ? null : condition.getMinCreatedAt()),
createdAtLoe(condition.getMaxCreatedAt() == null ? null : condition.getMaxCreatedAt()),
};
}

Expand All @@ -67,7 +67,7 @@ private BooleanExpression createdAtGoe(LocalDate date) {
}

private BooleanExpression createdAtLoe(LocalDate date) {
return date == null ? null : booking.createdAt.loe(date.atStartOfDay());
return date == null ? null : booking.createdAt.loe(date.atTime(23, 59, 59));
}

private OrderSpecifier<?> createSortCondition(BookingSortType sortType) {
Expand Down

0 comments on commit da2525a

Please sign in to comment.