You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
공지 커서 목록(NoticeJpaRepository)이 첫 페이지용 findFirstSlice와 다음 페이지용 findNextSlice 두 쿼리로 나뉘어 있다. 두 쿼리는 카테고리 조건·정렬이 같고 커서 조건만 다른데, 조건을 바꿀 때마다 두 곳을 똑같이 고쳐야 한다. 물품 목록(ItemJpaRepository.findSlice)처럼 커서 파라미터가 null이면 첫 페이지로 동작하는 쿼리 하나로 합친다.
📝 작업 상세 내용
findFirstSlice/findNextSlice를 findSlice 하나로 합치고, 커서가 없으면 커서 조건이 빠지도록 null 가드(:cursorId IS NULL OR ...)를 둔다
cursorPinned를 null을 받을 수 있는 Boolean으로 바꾸고, NoticeRepositoryImpl은 커서가 있으면 값을 풀어서, 없으면 null로 넘긴다
Activity
Merge pull request #161 from billilge/refactor/#160-merge-notice-slic…