| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得能耗考核指标") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:em-quota:query')") |
| | | public CommonResult<MesEmQuotaRespVO> getQuota(@RequestParam("id") Long id) { |
| | | MesEmQuotaDO quota = quotaService.getQuota(id); |
| | | if (quota == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得能耗考核指标分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:em-quota:query')") |
| | | public CommonResult<PageResult<MesEmQuotaRespVO>> getQuotaPage(@Valid MesEmQuotaPageReqVO pageReqVO) { |
| | | PageResult<MesEmQuotaDO> pageResult = quotaService.getQuotaPage(pageReqVO); |
| | | return success(new PageResult<>(quotaService.getQuotaRespVOList(pageResult.getList()), |