Compare commits

...

2 Commits

3 changed files with 2 additions and 6 deletions

View File

@@ -74,7 +74,6 @@ class AdminChargeStatusQueryRepository(private val queryFactory: JPAQueryFactory
member.nickname, member.nickname,
payment.method.coalesce(""), payment.method.coalesce(""),
payment.price, payment.price,
can1.price,
payment.locale.coalesce(""), payment.locale.coalesce(""),
formattedDate formattedDate
) )

View File

@@ -69,17 +69,15 @@ class AdminChargeStatusService(val repository: AdminChargeStatusQueryRepository)
.toLocalDateTime() .toLocalDateTime()
return repository.getChargeStatusDetail(startDate, endDate, paymentGateway) return repository.getChargeStatusDetail(startDate, endDate, paymentGateway)
.asSequence()
.map { .map {
GetChargeStatusDetailResponse( GetChargeStatusDetailResponse(
memberId = it.memberId, memberId = it.memberId,
nickname = it.nickname, nickname = it.nickname,
method = it.method, method = it.method,
amount = it.appleChargeAmount.toInt(), amount = it.amount.toInt(),
locale = it.locale, locale = it.locale,
datetime = it.datetime datetime = it.datetime
) )
} }
.toList()
} }
} }

View File

@@ -7,8 +7,7 @@ data class GetChargeStatusDetailQueryDto @QueryProjection constructor(
val memberId: Long, val memberId: Long,
val nickname: String, val nickname: String,
val method: String, val method: String,
val appleChargeAmount: BigDecimal, val amount: BigDecimal,
val pgChargeAmount: BigDecimal,
val locale: String, val locale: String,
val datetime: String val datetime: String
) )