| | |
| | | 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.AjaxResult; |
| | | import com.ruoyi.quality.service.QualityReportService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | */ |
| | | @ApiOperation("获取检验统计数据") |
| | | @GetMapping("/getInspectStatistics") |
| | | @Log(title = "获取检验统计数据", businessType = BusinessType.OTHER) |
| | | public AjaxResult getInspectStatistics() { |
| | | return AjaxResult.success(qualityReportService.getInspectStatistics()); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("获取合格率统计数据") |
| | | @GetMapping("/getPassRateStatistics") |
| | | @Log(title = "获取合格率统计数据", businessType = BusinessType.OTHER) |
| | | public AjaxResult getPassRateStatistics() { |
| | | return AjaxResult.success(qualityReportService.getPassRateStatistics()); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("获取月度合格率统计数据") |
| | | @GetMapping("/getMonthlyPassRateStatistics") |
| | | @Log(title = "获取月度合格率统计数据", businessType = BusinessType.OTHER) |
| | | public AjaxResult getMonthlyPassRateStatistics(@RequestParam("year") String year) { |
| | | return AjaxResult.success(qualityReportService.getMonthlyPassRateStatistics(year)); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("获取年度总合格率统计数据") |
| | | @GetMapping("/getYearlyPassRateStatistics") |
| | | @Log(title = "获取年度总合格率统计数据", businessType = BusinessType.OTHER) |
| | | public AjaxResult getYearlyPassRateStatistics(@RequestParam("year") String year) { |
| | | return AjaxResult.success(qualityReportService.getYearlyPassRateStatistics(year)); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("获取月度完成明细数据") |
| | | @GetMapping("/getMonthlyCompletionDetails") |
| | | @Log(title = "获取月度完成明细数据", businessType = BusinessType.OTHER) |
| | | public AjaxResult getMonthlyCompletionDetails(@RequestParam("year") String year) { |
| | | return AjaxResult.success(qualityReportService.getMonthlyCompletionDetails(year)); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("获取热点检测指标统计") |
| | | @GetMapping("/getTopParameters") |
| | | @Log(title = "获取热点检测指标统计", businessType = BusinessType.OTHER) |
| | | public AjaxResult getTopParameters(@RequestParam("modelType") Integer modelType) { |
| | | return AjaxResult.success(qualityReportService.getTopParameters(modelType)); |
| | | } |