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