Compare commits

...

2 Commits

3 changed files with 2 additions and 9 deletions

View File

@@ -32,7 +32,6 @@ class AdminChargeStatusQueryRepository(private val queryFactory: JPAQueryFactory
QGetChargeStatusQueryDto(
formattedDate,
payment.price.sum(),
can1.price.sum(),
payment.id.count(),
payment.paymentGateway
)

View File

@@ -25,12 +25,7 @@ class AdminChargeStatusService(val repository: AdminChargeStatusQueryRepository)
val chargeStatusList = repository.getChargeStatus(startDate, endDate)
.map {
val chargeAmount = if (it.paymentGateWay == PaymentGateway.PG) {
it.pgChargeAmount
} else {
it.appleChargeAmount
}
val chargeAmount = it.amount
val chargeCount = it.chargeCount
totalChargeAmount += chargeAmount

View File

@@ -6,8 +6,7 @@ import java.math.BigDecimal
data class GetChargeStatusQueryDto @QueryProjection constructor(
val date: String,
val appleChargeAmount: BigDecimal,
val pgChargeAmount: BigDecimal,
val amount: BigDecimal,
val chargeCount: Long,
val paymentGateWay: PaymentGateway
)