관리자 캔 충전현황
- 충전금액 표시 로직 수정 - PG일 떄 can 테이블에 표시된 가격을 가져오고 나머지는 payment 테이블에 있는 가격을 가져오도록 수정
This commit is contained in:
parent
acb6eb237c
commit
71dffc4c0b
|
@ -26,10 +26,10 @@ class AdminChargeStatusService(val repository: AdminChargeStatusQueryRepository)
|
|||
val chargeStatusList = repository.getChargeStatus(startDate, endDate)
|
||||
.asSequence()
|
||||
.map {
|
||||
val chargeAmount = if (it.paymentGateWay == PaymentGateway.APPLE_IAP) {
|
||||
it.appleChargeAmount.toInt()
|
||||
} else {
|
||||
val chargeAmount = if (it.paymentGateWay == PaymentGateway.PG) {
|
||||
it.pgChargeAmount
|
||||
} else {
|
||||
it.appleChargeAmount.toInt()
|
||||
}
|
||||
|
||||
val chargeCount = it.chargeCount
|
||||
|
|
Loading…
Reference in New Issue