Merge pull request '광고 통계' (#299) from test into main
Reviewed-on: #299
This commit is contained in:
		| @@ -46,6 +46,12 @@ class AdminAdStatisticsRepository(private val queryFactory: JPAQueryFactory) { | ||||
|             .otherwise(0) | ||||
|             .sum() | ||||
|  | ||||
|         val launchCount = CaseBuilder() | ||||
|             .`when`(adTrackingHistory.type.eq(AdTrackingHistoryType.APP_LAUNCH)) | ||||
|             .then(1) | ||||
|             .otherwise(0) | ||||
|             .sum() | ||||
|  | ||||
|         val loginCount = CaseBuilder() | ||||
|             .`when`(adTrackingHistory.type.eq(AdTrackingHistoryType.LOGIN)) | ||||
|             .then(1) | ||||
| @@ -101,6 +107,7 @@ class AdminAdStatisticsRepository(private val queryFactory: JPAQueryFactory) { | ||||
|                     adTrackingHistory.mediaGroup, | ||||
|                     adTrackingHistory.pid, | ||||
|                     adTrackingHistory.pidName, | ||||
|                     launchCount, | ||||
|                     loginCount, | ||||
|                     signUpCount, | ||||
|                     firstPaymentCount, | ||||
|   | ||||
| @@ -12,6 +12,7 @@ data class GetAdminAdStatisticsItem @QueryProjection constructor( | ||||
|     val mediaGroup: String, | ||||
|     val pid: String, | ||||
|     val pidName: String, | ||||
|     val launchCount: Int, | ||||
|     val loginCount: Int, | ||||
|     val signUpCount: Int, | ||||
|     val firstPaymentCount: Int, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user