| | |
| | | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.quality.service.QualityReportService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | * @author 芯导软件(江苏)有限公司 |
| | | * @since 2026-01-14 03:39:49 |
| | | */ |
| | | @Api(tags = "质量管理") |
| | | @Tag(name = "质量管理") |
| | | @RestController |
| | | @RequestMapping("/qualityReport") |
| | | @AllArgsConstructor |
| | |
| | | /** |
| | | * 获取检验统计数据 |
| | | */ |
| | | @ApiOperation("获取检验统计数据") |
| | | @Operation(summary = "获取检验统计数据") |
| | | @GetMapping("/getInspectStatistics") |
| | | public AjaxResult getInspectStatistics() { |
| | | return AjaxResult.success(qualityReportService.getInspectStatistics()); |
| | |
| | | /** |
| | | * 获取合格率统计数据 |
| | | */ |
| | | @ApiOperation("获取合格率统计数据") |
| | | @Operation(summary = "获取合格率统计数据") |
| | | @GetMapping("/getPassRateStatistics") |
| | | public AjaxResult getPassRateStatistics() { |
| | | return AjaxResult.success(qualityReportService.getPassRateStatistics()); |
| | |
| | | /** |
| | | * 获取月度合格率统计数据 |
| | | */ |
| | | @ApiOperation("获取月度合格率统计数据") |
| | | @Operation(summary = "获取月度合格率统计数据") |
| | | @GetMapping("/getMonthlyPassRateStatistics") |
| | | public AjaxResult getMonthlyPassRateStatistics(@RequestParam("year") String year) { |
| | | return AjaxResult.success(qualityReportService.getMonthlyPassRateStatistics(year)); |
| | |
| | | /** |
| | | * 获取年度总合格率统计数据 |
| | | */ |
| | | @ApiOperation("获取年度总合格率统计数据") |
| | | @Operation(summary = "获取年度总合格率统计数据") |
| | | @GetMapping("/getYearlyPassRateStatistics") |
| | | public AjaxResult getYearlyPassRateStatistics(@RequestParam("year") String year) { |
| | | return AjaxResult.success(qualityReportService.getYearlyPassRateStatistics(year)); |
| | |
| | | /** |
| | | * 获取月度完成明细数据 |
| | | */ |
| | | @ApiOperation("获取月度完成明细数据") |
| | | @Operation(summary = "获取月度完成明细数据") |
| | | @GetMapping("/getMonthlyCompletionDetails") |
| | | public AjaxResult getMonthlyCompletionDetails(@RequestParam("year") String year) { |
| | | return AjaxResult.success(qualityReportService.getMonthlyCompletionDetails(year)); |
| | |
| | | /** |
| | | * 获取热点检测指标统计 |
| | | */ |
| | | @ApiOperation("获取热点检测指标统计") |
| | | @Operation(summary = "获取热点检测指标统计") |
| | | @GetMapping("/getTopParameters") |
| | | public AjaxResult getTopParameters(@RequestParam("modelType") Integer modelType) { |
| | | return AjaxResult.success(qualityReportService.getTopParameters(modelType)); |