From 674b2607ad1b2882afcef3fb7c5261f2f2cdf057 Mon Sep 17 00:00:00 2001 From: dongkyunKim Date: Tue, 19 Mar 2024 17:12:59 +0900 Subject: [PATCH] =?UTF-8?q?fix()=20:=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20?= =?UTF-8?q?=EA=B0=9C=EC=88=98=2010=EA=B0=9C=20=EC=A0=9C=ED=95=9C,=20?= =?UTF-8?q?=EB=8D=94=EB=AF=B8=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EC=97=86?= =?UTF-8?q?=EC=9D=B4=20=EC=A1=B0=ED=9A=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/titto_backend/auth/repository/UserRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Titto_Backend/src/main/java/com/example/titto_backend/auth/repository/UserRepository.java b/Titto_Backend/src/main/java/com/example/titto_backend/auth/repository/UserRepository.java index 4d5a5fb..fe2ee1b 100644 --- a/Titto_Backend/src/main/java/com/example/titto_backend/auth/repository/UserRepository.java +++ b/Titto_Backend/src/main/java/com/example/titto_backend/auth/repository/UserRepository.java @@ -20,8 +20,8 @@ public interface UserRepository extends JpaRepository { @Query("SELECT new com.example.titto_backend.auth.dto.response.UserRankingDto(" + "a.id, a.profile, a.nickname, a.studentNo, a.department, a.totalExperience, a.level)" - + "FROM User a " - + "ORDER BY a.totalExperience DESC" + + "FROM User a WHERE a.id NOT IN (1)" + + "ORDER BY a.totalExperience DESC limit 10" ) List findUserByOrderByTotalExperience(); } \ No newline at end of file