diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/admin/can/AdminCanRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/admin/can/AdminCanRepository.kt index f7bb09b..e9c0793 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/admin/can/AdminCanRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/admin/can/AdminCanRepository.kt @@ -25,7 +25,7 @@ class AdminCanQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : A can1.title, can1.can, can1.rewardCan, - can1.price, + can1.price.intValue(), can1.currency, can1.price.stringValue() ) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/can/CanRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/can/CanRepository.kt index 76ea545..b66d609 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/can/CanRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/can/CanRepository.kt @@ -41,7 +41,7 @@ class CanQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : CanQue can1.title, can1.can, can1.rewardCan, - can1.price, + can1.price.intValue(), can1.currency, can1.price.stringValue() ) @@ -60,7 +60,7 @@ class CanQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : CanQue can1.title, can1.can, can1.rewardCan, - can1.price, + can1.price.intValue(), can1.currency, can1.price.stringValue() ) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/can/CanResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/can/CanResponse.kt index bc82579..ffc5d91 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/can/CanResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/can/CanResponse.kt @@ -1,14 +1,13 @@ package kr.co.vividnext.sodalive.can import com.querydsl.core.annotations.QueryProjection -import java.math.BigDecimal data class CanResponse @QueryProjection constructor( val id: Long, val title: String, val can: Int, val rewardCan: Int, - val price: BigDecimal, + val price: Int, val currency: String, val priceStr: String )