| | |
| | | |
| | | @GetMapping("/summary") |
| | | @Operation(summary = "获得首页汇总统计") |
| | | @PreAuthorize("@ss.hasPermission('mes:home:query')") |
| | | public CommonResult<MesHomeSummaryRespVO> getHomeSummary() { |
| | | return success(homeStatisticsService.getHomeSummary()); |
| | | } |
| | | |
| | | @GetMapping("/work-order-status") |
| | | @Operation(summary = "获得工单状态分布") |
| | | @PreAuthorize("@ss.hasPermission('mes:home:query')") |
| | | public CommonResult<List<MesHomeWorkOrderStatusRespVO>> getWorkOrderStatusDistribution() { |
| | | return success(homeStatisticsService.getWorkOrderStatusDistribution()); |
| | | } |
| | |
| | | @GetMapping("/production-trend") |
| | | @Operation(summary = "获得生产趋势") |
| | | @Parameter(name = "days", description = "天数", example = "7") |
| | | @PreAuthorize("@ss.hasPermission('mes:home:query')") |
| | | public CommonResult<List<MesHomeProductionTrendRespVO>> getProductionTrend( |
| | | @RequestParam(value = "days", defaultValue = "7") @Min(1) @Max(90) Integer days) { |
| | | return success(homeStatisticsService.getProductionTrend(days)); |