콘텐츠 누적 매출 API - 사용하지 않는 파라미터 제거
This commit is contained in:
parent
725b959117
commit
b7e4e6f43f
|
@ -25,16 +25,7 @@ class AdminCalculateController(private val service: AdminCalculateService) {
|
||||||
) = ApiResponse.ok(service.getCalculateContentList(startDateStr, endDateStr))
|
) = ApiResponse.ok(service.getCalculateContentList(startDateStr, endDateStr))
|
||||||
|
|
||||||
@GetMapping("/cumulative-sales-by-content")
|
@GetMapping("/cumulative-sales-by-content")
|
||||||
fun getCumulativeSalesByContent(
|
fun getCumulativeSalesByContent(pageable: Pageable) = ApiResponse.ok(
|
||||||
@RequestParam startDateStr: String,
|
service.getCumulativeSalesByContent(pageable.offset, pageable.pageSize.toLong())
|
||||||
@RequestParam endDateStr: String,
|
|
||||||
pageable: Pageable
|
|
||||||
) = ApiResponse.ok(
|
|
||||||
service.getCumulativeSalesByContent(
|
|
||||||
startDateStr,
|
|
||||||
endDateStr,
|
|
||||||
pageable.offset,
|
|
||||||
pageable.pageSize.toLong()
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,12 +135,7 @@ class AdminCalculateService(private val repository: AdminCalculateQueryRepositor
|
||||||
.toList()
|
.toList()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getCumulativeSalesByContent(
|
fun getCumulativeSalesByContent(offset: Long, limit: Long): GetCumulativeSalesByContentResponse {
|
||||||
startDateStr: String,
|
|
||||||
endDateStr: String,
|
|
||||||
offset: Long,
|
|
||||||
limit: Long
|
|
||||||
): GetCumulativeSalesByContentResponse {
|
|
||||||
val totalCount = repository.getCumulativeSalesByContentTotalCount()
|
val totalCount = repository.getCumulativeSalesByContentTotalCount()
|
||||||
val items = repository
|
val items = repository
|
||||||
.getCumulativeSalesByContent(offset, limit)
|
.getCumulativeSalesByContent(offset, limit)
|
||||||
|
|
Loading…
Reference in New Issue