| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得能耗预警分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-alert:query')") |
| | | public CommonResult<PageResult<MesEmAlertRespVO>> getAlertPage(@Valid MesEmAlertPageReqVO pageReqVO) { |
| | | PageResult<MesEmAlertDO> pageResult = alertService.getAlertPage(pageReqVO); |
| | | return success(new PageResult<>(alertService.getAlertRespVOList(pageResult.getList()), |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得能耗预警") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:em-alert:query')") |
| | | public CommonResult<MesEmAlertRespVO> getAlert(@RequestParam("id") Long id) { |
| | | MesEmAlertDO alert = alertService.getAlert(id); |
| | | if (alert == null) { |