| | |
| | | return success(true); |
| | | } |
| | | |
| | | @GetMapping("/get") |
| | | @GetMapping("/get/{id}") |
| | | @Operation(summary = "获得预警配置") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('pre:alarm-config:query')") |
| | | public CommonResult<MmPredictAlarmConfigRespVO> getInfo(@RequestParam("id") String id) { |
| | | public CommonResult<MmPredictAlarmConfigRespVO> getInfo(@PathVariable("id") String id) { |
| | | MmPredictAlarmConfigEntity entity = mmPredictAlarmConfigService.getInfo(id); |
| | | return success(BeanUtils.toBean(entity, MmPredictAlarmConfigRespVO.class)); |
| | | } |
| | |
| | | @Operation(summary = "获得预警配置分页") |
| | | @PreAuthorize("@ss.hasPermission('pre:alarm-config:query')") |
| | | public CommonResult<PageResult<MmPredictAlarmConfigRespVO>> getTenantPage(@Valid MmPredictAlarmConfigPageReqVO pageVO) { |
| | | PageResult<MmPredictAlarmConfigEntity> pageResult = mmPredictAlarmConfigService.page(pageVO); |
| | | PageResult<MmPredictAlarmConfigRespVO> pageResult = mmPredictAlarmConfigService.page(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, MmPredictAlarmConfigRespVO.class)); |
| | | } |
| | | } |