Skip to content

Commit

Permalink
refactor: 정산 내역 조회를 날짜 기준 내림차순으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
seungh1024 committed Nov 20, 2024
1 parent 34b5ec7 commit 0513b2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public List<SettlementInfoResponseDto> getSettlementInfoList(long accountPk, Str

Query query = new Query(Criteria.where("memberInfoList.accountPk").is(accountPk))
.addCriteria(Criteria.where("_id").gt(id))
.with(Sort.by(Sort.Order.asc("createdAt")))
.with(Sort.by(Sort.Order.desc("createdAt")))
.limit(SettlementUtils.PAGE_SIZE);

return mongoTemplate.find(query, SettlementInfoDocument.class)
Expand Down

0 comments on commit 0513b2b

Please sign in to comment.