| | |
| | | package com.ruoyi.quality.controller; |
| | | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.quality.service.QualityReportService; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | |
| | | */ |
| | | @Operation(summary = "获取检验统计数据") |
| | | @GetMapping("/getInspectStatistics") |
| | | @Log(title = "获取检验统计数据", businessType = BusinessType.OTHER) |
| | | public R<?> getInspectStatistics() { |
| | | return R.ok(qualityReportService.getInspectStatistics()); |
| | | } |
| | |
| | | */ |
| | | @Operation(summary = "获取合格率统计数据") |
| | | @GetMapping("/getPassRateStatistics") |
| | | @Log(title = "获取合格率统计数据", businessType = BusinessType.OTHER) |
| | | public R<?> getPassRateStatistics() { |
| | | return R.ok(qualityReportService.getPassRateStatistics()); |
| | | } |
| | |
| | | */ |
| | | @Operation(summary = "获取月度合格率统计数据") |
| | | @GetMapping("/getMonthlyPassRateStatistics") |
| | | @Log(title = "获取月度合格率统计数据", businessType = BusinessType.OTHER) |
| | | public R<?> getMonthlyPassRateStatistics(@RequestParam("year") String year) { |
| | | return R.ok(qualityReportService.getMonthlyPassRateStatistics(year)); |
| | | } |
| | |
| | | */ |
| | | @Operation(summary = "获取年度总合格率统计数据") |
| | | @GetMapping("/getYearlyPassRateStatistics") |
| | | @Log(title = "获取年度总合格率统计数据", businessType = BusinessType.OTHER) |
| | | public R<?> getYearlyPassRateStatistics(@RequestParam("year") String year) { |
| | | return R.ok(qualityReportService.getYearlyPassRateStatistics(year)); |
| | | } |
| | |
| | | */ |
| | | @Operation(summary = "获取月度完成明细数据") |
| | | @GetMapping("/getMonthlyCompletionDetails") |
| | | @Log(title = "获取月度完成明细数据", businessType = BusinessType.OTHER) |
| | | public R<?> getMonthlyCompletionDetails(@RequestParam("year") String year) { |
| | | return R.ok(qualityReportService.getMonthlyCompletionDetails(year)); |
| | | } |
| | |
| | | */ |
| | | @Operation(summary = "获取热点检测指标统计") |
| | | @GetMapping("/getTopParameters") |
| | | @Log(title = "获取热点检测指标统计", businessType = BusinessType.OTHER) |
| | | public R<?> getTopParameters(@RequestParam("modelType") Integer modelType) { |
| | | return R.ok(qualityReportService.getTopParameters(modelType)); |
| | | } |