Skip to content

Commit

Permalink
repository interface arg명 수정 (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
wken5577 committed Jan 9, 2024
1 parent 2115f75 commit c0dc457
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public interface RankRepository extends JpaRepository<Rank, Long> {
+ " GROUP BY p.user_id) pg "
+ "ON pg.user_id = u.id "
+ "WHERE r.season_id = :seasonId AND (r.losses > 0 OR r.wins > 0) "
+ "LIMIT :pageSize OFFSET :pageNum ", nativeQuery = true)
List<RankV2Dto> findPppRankBySeasonId(@Param("pageNum")int pageNum, @Param("pageSize")int pageSize, @Param("seasonId") Long seasonId);
+ "LIMIT :limit OFFSET :offset ", nativeQuery = true)
List<RankV2Dto> findPppRankBySeasonId(@Param("offset")int offset, @Param("limit")int limit, @Param("seasonId") Long seasonId);

@Query(value = "SELECT count(*) "
+ "FROM Ranks r "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public interface UserRepository extends JpaRepository<User, Long> {
+ "FROM User u LEFT JOIN Ranks r "
+ "ON u.id = r.user_id "
+ "WHERE r.season_id = :seasonId AND u.total_exp > 0 "
+ "LIMIT :pageSize OFFSET :pageNum", nativeQuery = true)
List<ExpRankV2Dto> findExpRank(@Param("pageNum")int pageNum, @Param("pageSize")int pageSize, @Param("seasonId")Long seasonId);
+ "LIMIT :limit OFFSET :offset", nativeQuery = true)
List<ExpRankV2Dto> findExpRank(@Param("offset")int offset, @Param("limit")int limit, @Param("seasonId")Long seasonId);

}

0 comments on commit c0dc457

Please sign in to comment.