트래킹

- mediaGroup과 pidName 추가
This commit is contained in:
Klaus 2025-03-04 17:33:01 +09:00
parent 72d10f9443
commit be12148d04
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,8 @@ import javax.persistence.PreUpdate
data class AdTrackingHistory( data class AdTrackingHistory(
@EmbeddedId @EmbeddedId
val id: AdTrackingHistoryId, val id: AdTrackingHistoryId,
val mediaGroup: String,
val pidName: String,
val price: Double = 0.toDouble(), val price: Double = 0.toDouble(),
val locale: String? = null, val locale: String? = null,
var updatedAt: LocalDateTime = LocalDateTime.now() var updatedAt: LocalDateTime = LocalDateTime.now()

View File

@ -28,6 +28,8 @@ class AdTrackingService(
val id = AdTrackingHistoryId(pid = pid, memberId = memberId, type = type) val id = AdTrackingHistoryId(pid = pid, memberId = memberId, type = type)
val trackingHistory = AdTrackingHistory( val trackingHistory = AdTrackingHistory(
id = id, id = id,
mediaGroup = mediaPartner.mediaGroup,
pidName = mediaPartner.pidName,
price = price ?: 0.toDouble(), price = price ?: 0.toDouble(),
locale = locale locale = locale
) )