Compare commits

..

No commits in common. "4abe1730a7dc65120c1dbb8e5a2515720db581e0" and "626f0e698966b7f4ae1e4f789573a9264786ad90" have entirely different histories.

4 changed files with 4 additions and 16 deletions

View File

@ -34,7 +34,6 @@ class AdminCalculateQueryRepository(private val queryFactory: JPAQueryFactory) {
liveRoom.title, liveRoom.title,
liveRoom.price, liveRoom.price,
useCan.canUsage, useCan.canUsage,
useCanCalculate.id.count(),
useCanCalculate.can.sum() useCanCalculate.can.sum()
) )
) )

View File

@ -26,17 +26,11 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
.asSequence() .asSequence()
.map { .map {
val canUsageStr = if (it.canUsage == CanUsage.LIVE) { val canUsageStr = if (it.canUsage == CanUsage.LIVE) {
"유료" "유료방 참여"
} else { } else {
"후원" "후원"
} }
val numberOfPeople = if (it.canUsage == CanUsage.LIVE) {
it.memberCount.toInt()
} else {
0
}
// 원화 = totalCoin * 100 ( 캔 1개 = 100원 ) // 원화 = totalCoin * 100 ( 캔 1개 = 100원 )
val totalKrw = it.totalAmount * 100 val totalKrw = it.totalAmount * 100
@ -58,8 +52,7 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
date = it.date, date = it.date,
title = it.title, title = it.title,
entranceFee = it.entranceFee, entranceFee = it.entranceFee,
canUsageStr = canUsageStr, coinUsageStr = canUsageStr,
numberOfPeople = numberOfPeople,
totalAmount = it.totalAmount, totalAmount = it.totalAmount,
totalKrw = totalKrw, totalKrw = totalKrw,
paymentFee = paymentFee.roundToInt(), paymentFee = paymentFee.roundToInt(),

View File

@ -12,8 +12,6 @@ data class GetCalculateLiveQueryData @QueryProjection constructor(
val entranceFee: Int, val entranceFee: Int,
// 코인 사용 구분 // 코인 사용 구분
val canUsage: CanUsage, val canUsage: CanUsage,
// 참여인원
val memberCount: Long,
// 합계 // 합계
val totalAmount: Int val totalAmount: Int
) )

View File

@ -7,10 +7,8 @@ data class GetCalculateLiveResponse(
val title: String, val title: String,
// 유료방 입장 금액 // 유료방 입장 금액
val entranceFee: Int, val entranceFee: Int,
// 캔 사용 구분 // 코인 사용 구분
val canUsageStr: String, val coinUsageStr: String,
// 인원
val numberOfPeople: Int,
// 합계 // 합계
val totalAmount: Int, val totalAmount: Int,
// 원화 // 원화