Merge pull request '콘텐츠 대여가격' (#232) from test into main
Reviewed-on: #232
This commit is contained in:
commit
cec87da69d
|
@ -42,7 +42,7 @@ data class Order(
|
||||||
var audioContent: AudioContent? = null
|
var audioContent: AudioContent? = null
|
||||||
set(value) {
|
set(value) {
|
||||||
can = if (type == OrderType.RENTAL && !value?.isOnlyRental!!) {
|
can = if (type == OrderType.RENTAL && !value?.isOnlyRental!!) {
|
||||||
ceil(value.price * 0.6).toInt()
|
ceil(value.price * 0.7).toInt()
|
||||||
} else {
|
} else {
|
||||||
value?.price!!
|
value?.price!!
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,8 +73,8 @@ class ContentSeriesService(
|
||||||
val minMaxPrice = repository.getSeriesContentMinMaxPrice(seriesId = seriesId)
|
val minMaxPrice = repository.getSeriesContentMinMaxPrice(seriesId = seriesId)
|
||||||
val minPrice = minMaxPrice.minPrice
|
val minPrice = minMaxPrice.minPrice
|
||||||
val maxPrice = minMaxPrice.maxPrice
|
val maxPrice = minMaxPrice.maxPrice
|
||||||
val rentalMinPrice = (minMaxPrice.minPrice * 0.6).toInt()
|
val rentalMinPrice = (minMaxPrice.minPrice * 0.7).toInt()
|
||||||
val rentalMaxPrice = (minMaxPrice.maxPrice * 0.6).toInt()
|
val rentalMaxPrice = (minMaxPrice.maxPrice * 0.7).toInt()
|
||||||
|
|
||||||
val seriesContentList = getSeriesContentList(
|
val seriesContentList = getSeriesContentList(
|
||||||
seriesId = seriesId,
|
seriesId = seriesId,
|
||||||
|
|
Loading…
Reference in New Issue