Skip to content

Commit

Permalink
Api-v1.0.0-3
Browse files Browse the repository at this point in the history
Api-v1.0.0-3
  • Loading branch information
ImNM authored Feb 28, 2023
2 parents 0e2e8d3 + 62a869b commit 26145d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Slice<Event> querySliceEventsByStatus(EventStatus status, Pageable pageab
queryFactory
.selectFrom(event)
.where(eqStatusOpen())
.orderBy(startAtAsc())
.orderBy(createdAtDesc())
.offset(pageable.getOffset())
.limit(pageable.getPageSize() + 1)
.fetch();
Expand All @@ -52,7 +52,7 @@ public Slice<Event> querySliceEventsByKeyword(String keyword, Pageable pageable)
queryFactory
.selectFrom(event)
.where(eqStatusOpen().and(nameContains(keyword)))
.orderBy(startAtAsc())
.orderBy(createdAtDesc())
.offset(pageable.getOffset())
.limit(pageable.getPageSize() + 1)
.fetch();
Expand All @@ -71,7 +71,7 @@ private BooleanExpression nameContains(String keyword) {
return keyword == null ? null : event.eventBasic.name.containsIgnoreCase(keyword);
}

private OrderSpecifier<LocalDateTime> startAtAsc() {
return event.eventBasic.startAt.asc();
private OrderSpecifier<LocalDateTime> createdAtDesc() {
return event.createdAt.desc();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public enum OrderErrorCode implements BaseErrorCode {
APPROVE_WAITING_PURCHASE_LIMIT(
BAD_REQUEST,
"Order_400_15",
"승인 대기중인 주문으로 인해 티켓 최대 구매 가능 회수를 넘겼습니다." + "이미 신청한 주문이 승인 될 때까지 기다려주세요.");
"승인 대기중인 주문으로 인해 티켓 최대 구매 가능 횟수를 넘겼습니다." + "이미 신청한 주문이 승인 될 때까지 기다려주세요.");

private Integer status;
private String code;
Expand Down

0 comments on commit 26145d0

Please sign in to comment.