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