콘텐츠 정산

- 하나의 콘텐츠를 구매할 때 PG, APPLE_IAP 와 같이 2개 이상의 다른 캔으로 결제 했을 때 2개 이상 구매된 것으로 표시되는 버그 수정
This commit is contained in:
2024-02-02 21:48:11 +09:00
parent 6efab40a85
commit e1ea1f14a5
2 changed files with 5 additions and 6 deletions

View File

@@ -65,6 +65,7 @@ class AdminCalculateQueryRepository(private val queryFactory: JPAQueryFactory) {
.where(
order.createdAt.goe(startDate)
.and(order.createdAt.loe(endDate))
.and(order.isActive.isTrue)
)
.groupBy(audioContent.id, order.type, orderFormattedDate, order.can)
.orderBy(member.id.desc(), orderFormattedDate.desc(), audioContent.id.asc())