Skip to content

Commit

Permalink
fix: 주유 이력 조회 오류 수정 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
gengminy authored Dec 10, 2023
1 parent da42904 commit 0d16aae
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public Page<GasStationHistoryDto> findAllPageByCondition(

final List<GasStationHistoryDto> result =
queryGasStationHistoryDto()
.orderBy(gasStationHistory.createdAt.desc())
.orderBy(
gasStationHistory.usedAt.desc(),
gasStationHistory.gasStation.name.asc())
.where(gasStationHistory.id.in(coveringIndex))
.offset(pageable.getOffset())
.limit(pageable.getPageSize())
.fetch();
Expand Down

0 comments on commit 0d16aae

Please sign in to comment.