| | |
| | | @RequestMapping("/energy/record") |
| | | @Validated |
| | | public class EnergyRecordController { |
| | | @Resource private cn.iocoder.yudao.module.mes.service.energy.EnergyExportService energyExportService; |
| | | @Resource(name = "energyRecordService") |
| | | private EnergyRecordService energyRecordService; |
| | | |
| | | @GetMapping("/export-excel") |
| | | @PreAuthorize("@ss.hasPermission('energy:record:export')") |
| | | public void export(@Valid EnergyRecordPageReqVO req, jakarta.servlet.http.HttpServletResponse response) throws java.io.IOException { |
| | | energyExportService.records(req, response); |
| | | } |
| | | @GetMapping("/analysis-export") |
| | | @PreAuthorize("@ss.hasPermission('energy:analysis:export')") |
| | | public void exportAnalysis(@Valid EnergyAnalysisReqVO req, jakarta.servlet.http.HttpServletResponse response) throws java.io.IOException { |
| | | energyExportService.analysis(req, response); |
| | | } |
| | | |
| | | @PostMapping("/create") |
| | | @Operation(summary = "手动新增能耗记录") |
| | | @PreAuthorize("@ss.hasPermission('energy:record:create')") |