| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @GetMapping("/overview") |
| | | @Operation(summary = "获得能耗总览数据") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-overview:query')") |
| | | public CommonResult<MesEmOverviewRespVO> getOverview( |
| | | @RequestParam(value = "beginDate", required = false) |
| | | @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate beginDate, |
| | |
| | | @GetMapping("/report") |
| | | @Operation(summary = "获得月度能耗报表(含同比、环比)") |
| | | @Parameter(name = "period", description = "月份 yyyy-MM", example = "2026-10") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-report:query')") |
| | | public CommonResult<MesEmReportRespVO> getReport( |
| | | @RequestParam(value = "period", required = false) String period) { |
| | | return success(statisticsService.getReport(period)); |