parent
26b8dcee1b
commit
b72a2884f6
|
@ -185,6 +185,7 @@ class AdminCalculateQueryRepository(private val queryFactory: JPAQueryFactory) {
|
||||||
member.nickname,
|
member.nickname,
|
||||||
Expressions.stringTemplate("substring({0}, 1, 10)", creatorCommunity.content),
|
Expressions.stringTemplate("substring({0}, 1, 10)", creatorCommunity.content),
|
||||||
formattedDate,
|
formattedDate,
|
||||||
|
creatorCommunity.price,
|
||||||
useCan.id.count(),
|
useCan.id.count(),
|
||||||
useCan.can.add(useCan.rewardCan).sum()
|
useCan.can.add(useCan.rewardCan).sum()
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,6 +7,7 @@ data class GetCalculateCommunityPostQueryData @QueryProjection constructor(
|
||||||
val nickname: String,
|
val nickname: String,
|
||||||
val title: String,
|
val title: String,
|
||||||
val date: String,
|
val date: String,
|
||||||
|
val can: Int,
|
||||||
val numberOfPurchase: Long,
|
val numberOfPurchase: Long,
|
||||||
val totalCan: Int
|
val totalCan: Int
|
||||||
) {
|
) {
|
||||||
|
@ -21,6 +22,7 @@ data class GetCalculateCommunityPostQueryData @QueryProjection constructor(
|
||||||
nickname = nickname,
|
nickname = nickname,
|
||||||
title = title,
|
title = title,
|
||||||
date = date,
|
date = date,
|
||||||
|
can = can,
|
||||||
numberOfPurchase = numberOfPurchase.toInt(),
|
numberOfPurchase = numberOfPurchase.toInt(),
|
||||||
totalCan = totalCan,
|
totalCan = totalCan,
|
||||||
totalKrw = totalKrw,
|
totalKrw = totalKrw,
|
||||||
|
|
|
@ -6,6 +6,7 @@ data class GetCalculateCommunityPostResponse(
|
||||||
@JsonProperty("nickname") val nickname: String,
|
@JsonProperty("nickname") val nickname: String,
|
||||||
@JsonProperty("title") val title: String,
|
@JsonProperty("title") val title: String,
|
||||||
@JsonProperty("date") val date: String,
|
@JsonProperty("date") val date: String,
|
||||||
|
@JsonProperty("can") val can: Int,
|
||||||
@JsonProperty("numberOfPurchase") val numberOfPurchase: Int,
|
@JsonProperty("numberOfPurchase") val numberOfPurchase: Int,
|
||||||
@JsonProperty("totalCan") val totalCan: Int,
|
@JsonProperty("totalCan") val totalCan: Int,
|
||||||
@JsonProperty("totalKrw") val totalKrw: Int,
|
@JsonProperty("totalKrw") val totalKrw: Int,
|
||||||
|
|
|
@ -273,6 +273,7 @@ class CreatorAdminCalculateQueryRepository(private val queryFactory: JPAQueryFac
|
||||||
member.nickname,
|
member.nickname,
|
||||||
Expressions.stringTemplate("substring({0}, 1, 10)", creatorCommunity.content),
|
Expressions.stringTemplate("substring({0}, 1, 10)", creatorCommunity.content),
|
||||||
formattedDate,
|
formattedDate,
|
||||||
|
creatorCommunity.price,
|
||||||
useCan.id.count(),
|
useCan.id.count(),
|
||||||
useCan.can.add(useCan.rewardCan).sum()
|
useCan.can.add(useCan.rewardCan).sum()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue