Skip to content

Commit

Permalink
Feat: 문화생활 검색 페이지네이션 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
rrosiee committed Jun 1, 2024
1 parent 8d1368d commit add6dc8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public List<CulturalEvent> getCulturalEventSearchList(int page, int size, String
// 인기순
culturalEventJPAQuery.orderBy(culturalEvent.point.desc());

// page, size 적용
Pageable pageable = PageRequest.of(page, size);
culturalEventJPAQuery.offset(pageable.getOffset());
culturalEventJPAQuery.limit(pageable.getPageSize());

return culturalEventJPAQuery.fetch();
}

Expand Down

0 comments on commit add6dc8

Please sign in to comment.