fix(admin-calculate): 관리자 정산 조회 캐시를 제거하고 응답 직렬화를 명시한다 #398
@@ -13,10 +13,6 @@ import java.time.LocalDateTime
|
||||
@Service
|
||||
class AdminCalculateService(private val repository: AdminCalculateQueryRepository) {
|
||||
@Transactional(readOnly = true)
|
||||
@Cacheable(
|
||||
cacheNames = ["cache_ttl_3_hours"],
|
||||
key = "'calculateLive:' + " + "#startDateStr + ':' + #endDateStr + ':' + #offset + ':' + #limit"
|
||||
)
|
||||
fun getCalculateLive(
|
||||
startDateStr: String,
|
||||
endDateStr: String,
|
||||
@@ -34,10 +30,6 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true)
|
||||
@Cacheable(
|
||||
cacheNames = ["cache_ttl_3_hours"],
|
||||
key = "'calculateContent:' + " + "#startDateStr + ':' + #endDateStr + ':' + #offset + ':' + #limit"
|
||||
)
|
||||
fun getCalculateContentList(
|
||||
startDateStr: String,
|
||||
endDateStr: String,
|
||||
@@ -69,10 +61,6 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true)
|
||||
@Cacheable(
|
||||
cacheNames = ["cache_ttl_3_hours"],
|
||||
key = "'calculateContentDonationList2:' + " + "#startDateStr + ':' + #endDateStr + ':' + #offset + ':' + #limit"
|
||||
)
|
||||
fun getCalculateContentDonationList(
|
||||
startDateStr: String,
|
||||
endDateStr: String,
|
||||
@@ -90,10 +78,6 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true)
|
||||
@Cacheable(
|
||||
cacheNames = ["cache_ttl_3_hours"],
|
||||
key = "'calculateCommunityPost:' + " + "#startDateStr + ':' + #endDateStr + ':' + #offset"
|
||||
)
|
||||
fun getCalculateCommunityPost(
|
||||
startDateStr: String,
|
||||
endDateStr: String,
|
||||
@@ -111,6 +95,7 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
|
||||
return GetCreatorCalculateCommunityPostResponse(totalCount, items)
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true)
|
||||
fun getCalculateLiveByCreator(
|
||||
startDateStr: String,
|
||||
endDateStr: String,
|
||||
@@ -128,6 +113,7 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
|
||||
GetCalculateByCreatorResponse(totalCount, items)
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true)
|
||||
fun getCalculateContentByCreator(
|
||||
startDateStr: String,
|
||||
endDateStr: String,
|
||||
@@ -145,6 +131,7 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
|
||||
GetCalculateByCreatorResponse(totalCount, items)
|
||||
}
|
||||
|
||||
@Transactional(readOnly = true)
|
||||
fun getCalculateCommunityByCreator(
|
||||
startDateStr: String,
|
||||
endDateStr: String,
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package kr.co.vividnext.sodalive.admin.calculate
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
data class GetCalculateContentDonationListResponse(
|
||||
val totalCount: Int,
|
||||
val items: List<GetCalculateContentDonationResponse>
|
||||
@JsonProperty("totalCount") val totalCount: Int,
|
||||
@JsonProperty("items") val items: List<GetCalculateContentDonationResponse>
|
||||
)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package kr.co.vividnext.sodalive.admin.calculate
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
data class GetCalculateContentListResponse(
|
||||
val totalCount: Int,
|
||||
val items: List<GetCalculateContentResponse>
|
||||
@JsonProperty("totalCount") val totalCount: Int,
|
||||
@JsonProperty("items") val items: List<GetCalculateContentResponse>
|
||||
)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package kr.co.vividnext.sodalive.admin.calculate
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
data class GetCalculateLiveListResponse(
|
||||
val totalCount: Int,
|
||||
val items: List<GetCalculateLiveResponse>
|
||||
@JsonProperty("totalCount") val totalCount: Int,
|
||||
@JsonProperty("items") val items: List<GetCalculateLiveResponse>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user