| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 江蹄蹄 |
| | | * @date 2023/03/21 15:48 |
| | |
| | | @Autowired |
| | | private WorkbenchService workbenchService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | | @ApiOperation("经营数据分析") |
| | | @PostMapping("/businessData") |
| | | public ApiResponse<BusinessDataCountVO> create(@RequestBody CountDataDTO param) { |
| | | public ApiResponse<BusinessDataCountVO> businessData(@RequestBody CountDataDTO param) { |
| | | return ApiResponse.success(workbenchService.businessData(param)); |
| | | } |
| | | @ApiOperation("经销商TOP10") |
| | | @PostMapping("/shopRankList10") |
| | | public ApiResponse<List<BusinessDataCountVO>> shopRankList10(@RequestBody CountDataDTO param) { |
| | | return ApiResponse.success(workbenchService.shopRankList10(param)); |
| | | } |
| | | @ApiOperation("单一商品TOP10") |
| | | @PostMapping("/goodsRankList10") |
| | | public ApiResponse<List<BusinessDataCountVO>> goodsRankList10(@RequestBody CountDataDTO param) { |
| | | return ApiResponse.success(workbenchService.goodsRankList10(param)); |
| | | } |
| | | |
| | | } |