Skip to content

Commit

Permalink
add: 예정된 북토크 조회시 마감 임박 순으로 정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
dong2ast committed Jul 22, 2023
1 parent 4a1e494 commit 58d975b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/sophy/sophy/service/MemberService.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;


Expand Down Expand Up @@ -91,6 +92,8 @@ public List<MyPageBooktalkDto> getBooktalksByMemberId(Long memberId) { //예정
.booktalkStatus(booktalk.getBooktalkStatus())
.build());
});

booktalkResponseDtoList.sort(Comparator.comparing(MyPageBooktalkDto::getEndDate));
return booktalkResponseDtoList;
}

Expand Down

0 comments on commit 58d975b

Please sign in to comment.