|
@@ -2,6 +2,7 @@ package com.abi.qms.platform.controller.console;
|
|
|
|
|
|
import com.abi.qms.platform.dto.req.ReportReq;
|
|
|
import com.abi.qms.platform.dto.res.ListBrandCodeReportRes;
|
|
|
+import com.abi.qms.platform.dto.res.ListSkuCodeRankingReportRes;
|
|
|
import com.abi.qms.platform.service.ReportService;
|
|
|
import com.abi.task.common.api.base.BaseResponse;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -9,9 +10,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -41,4 +40,10 @@ public class ReportController {
|
|
|
return BaseResponse.create(result);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("SKU使用码量排名")
|
|
|
+ @PostMapping("/querySkuCodeRanking")
|
|
|
+ public BaseResponse<ListSkuCodeRankingReportRes> querySkuCodeRanking(@RequestBody ReportReq reportReq) {
|
|
|
+ ListSkuCodeRankingReportRes result= reportService.querySkuCodeRanking(reportReq);
|
|
|
+ return BaseResponse.create(result);
|
|
|
+ }
|
|
|
}
|