parent
8700030707
commit
80a78a036e
|
@ -10,7 +10,7 @@ import org.springframework.transaction.annotation.Transactional
|
||||||
class AdminCalculateService(private val repository: AdminCalculateQueryRepository) {
|
class AdminCalculateService(private val repository: AdminCalculateQueryRepository) {
|
||||||
@Transactional(readOnly = true)
|
@Transactional(readOnly = true)
|
||||||
@Cacheable(
|
@Cacheable(
|
||||||
cacheNames = ["default"],
|
cacheNames = ["cache_ttl_3_hours"],
|
||||||
key = "'calculateLive:' + " + "#startDateStr + ':' + #endDateStr"
|
key = "'calculateLive:' + " + "#startDateStr + ':' + #endDateStr"
|
||||||
)
|
)
|
||||||
fun getCalculateLive(startDateStr: String, endDateStr: String): List<GetCalculateLiveResponse> {
|
fun getCalculateLive(startDateStr: String, endDateStr: String): List<GetCalculateLiveResponse> {
|
||||||
|
@ -67,6 +67,11 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
|
||||||
.map { it.toGetCalculateContentDonationResponse() }
|
.map { it.toGetCalculateContentDonationResponse() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Transactional(readOnly = true)
|
||||||
|
@Cacheable(
|
||||||
|
cacheNames = ["cache_ttl_3_hours"],
|
||||||
|
key = "'calculateCommunityPost:' + " + "#startDateStr + ':' + #endDateStr + ':' + #offset"
|
||||||
|
)
|
||||||
fun getCalculateCommunityPost(
|
fun getCalculateCommunityPost(
|
||||||
startDateStr: String,
|
startDateStr: String,
|
||||||
endDateStr: String,
|
endDateStr: String,
|
||||||
|
|
Loading…
Reference in New Issue