크리에이터 관리자 - 콘텐츠 누적 매출 API #81
| @@ -12,6 +12,11 @@ import kotlin.math.roundToInt | ||||
|  | ||||
| @Service | ||||
| class AdminCalculateService(private val repository: AdminCalculateQueryRepository) { | ||||
|     @Transactional(readOnly = true) | ||||
|     @Cacheable( | ||||
|         cacheNames = ["default"], | ||||
|         key = "'calculateLive:' + " + "#startDateStr + ':' + #endDateStr" | ||||
|     ) | ||||
|     fun getCalculateLive(startDateStr: String, endDateStr: String): List<GetCalculateLiveResponse> { | ||||
|         val dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd") | ||||
|         val startDate = LocalDate.parse(startDateStr, dateTimeFormatter).atTime(0, 0, 0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user