fix(can): 이전 버전의 호환성을 위해 기존의 int price를 유지하도록 수정

This commit is contained in:
2025-10-03 00:02:47 +09:00
parent 0866e0972a
commit 085b217abb
3 changed files with 4 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ class AdminCanQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : A
can1.title, can1.title,
can1.can, can1.can,
can1.rewardCan, can1.rewardCan,
can1.price, can1.price.intValue(),
can1.currency, can1.currency,
can1.price.stringValue() can1.price.stringValue()
) )

View File

@@ -41,7 +41,7 @@ class CanQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : CanQue
can1.title, can1.title,
can1.can, can1.can,
can1.rewardCan, can1.rewardCan,
can1.price, can1.price.intValue(),
can1.currency, can1.currency,
can1.price.stringValue() can1.price.stringValue()
) )
@@ -60,7 +60,7 @@ class CanQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : CanQue
can1.title, can1.title,
can1.can, can1.can,
can1.rewardCan, can1.rewardCan,
can1.price, can1.price.intValue(),
can1.currency, can1.currency,
can1.price.stringValue() can1.price.stringValue()
) )

View File

@@ -1,14 +1,13 @@
package kr.co.vividnext.sodalive.can package kr.co.vividnext.sodalive.can
import com.querydsl.core.annotations.QueryProjection import com.querydsl.core.annotations.QueryProjection
import java.math.BigDecimal
data class CanResponse @QueryProjection constructor( data class CanResponse @QueryProjection constructor(
val id: Long, val id: Long,
val title: String, val title: String,
val can: Int, val can: Int,
val rewardCan: Int, val rewardCan: Int,
val price: BigDecimal, val price: Int,
val currency: String, val currency: String,
val priceStr: String val priceStr: String
) )