Compare commits

..

No commits in common. "26b55e6fcfb4365147dd680c9e4c2625a9234d88" and "0d743f72044aa33b415b4bd81d837cb6940c15bd" have entirely different histories.

3 changed files with 2 additions and 14 deletions

View File

@ -108,7 +108,6 @@ class AdminCalculateQueryRepository(private val queryFactory: JPAQueryFactory) {
member.nickname,
audioContent.title,
getFormattedDate(audioContent.createdAt),
order.type,
order.can,
order.id.count(),
order.can.sum()
@ -117,10 +116,10 @@ class AdminCalculateQueryRepository(private val queryFactory: JPAQueryFactory) {
.from(order)
.innerJoin(order.audioContent, audioContent)
.innerJoin(audioContent.member, member)
.groupBy(member.id, audioContent.id, order.type, order.can)
.groupBy(member.id, audioContent.id, order.can)
.offset(offset)
.limit(limit)
.orderBy(member.id.desc(), audioContent.id.desc())
.orderBy(member.id.desc(), audioContent.id.asc())
.fetch()
}
}

View File

@ -141,12 +141,6 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
.getCumulativeSalesByContent(offset, limit)
.asSequence()
.map {
val orderTypeStr = if (it.orderType == OrderType.RENTAL) {
"대여"
} else {
"소장"
}
// 원화 = totalCoin * 100 ( 캔 1개 = 100원 )
val totalKrw = it.totalCan * 100
@ -166,7 +160,6 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
nickname = it.nickname,
title = it.title,
registrationDate = it.registrationDate,
orderType = orderTypeStr,
orderPrice = it.orderPrice,
numberOfPeople = it.numberOfPeople.toInt(),
totalCan = it.totalCan,

View File

@ -2,7 +2,6 @@ package kr.co.vividnext.sodalive.admin.calculate
import com.fasterxml.jackson.annotation.JsonProperty
import com.querydsl.core.annotations.QueryProjection
import kr.co.vividnext.sodalive.content.order.OrderType
data class GetCumulativeSalesByContentQueryData @QueryProjection constructor(
// 등록 크리에이터 닉네임
@ -11,8 +10,6 @@ data class GetCumulativeSalesByContentQueryData @QueryProjection constructor(
val title: String,
// 콘텐츠 등록 날짜
val registrationDate: String,
// 대여/소장 구분
val orderType: OrderType,
// 판매 금액(캔)
val orderPrice: Int,
// 인원
@ -30,7 +27,6 @@ data class CumulativeSalesByContentItem(
@JsonProperty("nickname") val nickname: String,
@JsonProperty("title") val title: String,
@JsonProperty("registrationDate") val registrationDate: String,
@JsonProperty("orderType") val orderType: String,
@JsonProperty("orderPrice") val orderPrice: Int,
@JsonProperty("numberOfPeople") val numberOfPeople: Int,
@JsonProperty("totalCan") val totalCan: Int,