Skip to content

Commit

Permalink
Merge pull request #184 from dongkyun0713/dongkyun
Browse files Browse the repository at this point in the history
fix() : 데이터 개수 10개 μ œν•œ, 더미데이터 없이 쑰회
  • Loading branch information
dongkyun0713 authored Mar 19, 2024
2 parents cfd2a37 + 674b260 commit 6d6fbc4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public interface UserRepository extends JpaRepository<User, Long> {

@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<UserRankingDto> findUserByOrderByTotalExperience();
}

0 comments on commit 6d6fbc4

Please sign in to comment.