潘志宝
2024-11-26 757bfdc997691450a68514c879fcb08cfbd5451f
iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmPredictAlarmConfigController.java
@@ -55,11 +55,11 @@
        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));
    }
@@ -68,7 +68,7 @@
    @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));
    }
}