From 0d16aae6ba5d550e7df0d52b857f9e6611426457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=85=B8=EA=B2=BD=EB=AF=BC?= Date: Mon, 11 Dec 2023 03:06:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A3=BC=EC=9C=A0=20=EC=9D=B4=EB=A0=A5?= =?UTF-8?q?=20=EC=A1=B0=ED=9A=8C=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20(#33)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/GasStationHistoryCustomRepositoryImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/testcar/car/domains/gasStationHistory/repository/GasStationHistoryCustomRepositoryImpl.java b/src/main/java/com/testcar/car/domains/gasStationHistory/repository/GasStationHistoryCustomRepositoryImpl.java index ed44fea..aec79c4 100644 --- a/src/main/java/com/testcar/car/domains/gasStationHistory/repository/GasStationHistoryCustomRepositoryImpl.java +++ b/src/main/java/com/testcar/car/domains/gasStationHistory/repository/GasStationHistoryCustomRepositoryImpl.java @@ -50,7 +50,10 @@ public Page findAllPageByCondition( final List 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();