관리자 마케팅 - 광고 통계

- LOGIN 기록 추가
This commit is contained in:
Klaus 2025-03-11 16:31:31 +09:00
parent 84de4e0c5a
commit 5b3c5731ee
2 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,12 @@ class AdminAdStatisticsRepository(private val queryFactory: JPAQueryFactory) {
.otherwise(0)
.sum()
val loginCount = CaseBuilder()
.`when`(adTrackingHistory.id.type.eq(AdTrackingHistoryType.LOGIN))
.then(1)
.otherwise(0)
.sum()
val firstPaymentCount = CaseBuilder()
.`when`(adTrackingHistory.id.type.eq(AdTrackingHistoryType.FIRST_PAYMENT))
.then(1)
@ -84,6 +90,7 @@ class AdminAdStatisticsRepository(private val queryFactory: JPAQueryFactory) {
adTrackingHistory.mediaGroup,
adTrackingHistory.id.pid,
adTrackingHistory.pidName,
loginCount,
signUpCount,
firstPaymentCount,
roundedValueDecimalPlaces2(firstPaymentTotalAmount),

View File

@ -12,6 +12,7 @@ data class GetAdminAdStatisticsItem @QueryProjection constructor(
val mediaGroup: String,
val pid: String,
val pidName: String,
val loginCount: Int,
val signUpCount: Int,
val firstPaymentCount: Int,
val firstPaymentTotalAmount: Double,