| | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.sales.dto.StatisticsTableDto; |
| | | import com.ruoyi.sales.service.impl.MetricStatisticsServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | * @author :yys |
| | | * @date : 2026/1/15 9:39 |
| | | */ |
| | | @Api(tags = "指标统计") |
| | | @Tag(name = "指标统计") |
| | | @RestController |
| | | @RequestMapping("/metricStatistics") |
| | | @AllArgsConstructor |
| | |
| | | |
| | | private MetricStatisticsServiceImpl metricStatisticsService; |
| | | |
| | | @ApiOperation("头部总计") |
| | | @Operation(summary = "头部总计") |
| | | @GetMapping("/total") |
| | | public AjaxResult total() { |
| | | return metricStatisticsService.total(); |
| | | } |
| | | |
| | | @ApiOperation("统计表") |
| | | @Operation(summary = "统计表") |
| | | @GetMapping("/statisticsTable") |
| | | public AjaxResult statisticsTable(StatisticsTableDto statisticsTableDto) { |
| | | return metricStatisticsService.statisticsTable(statisticsTableDto); |