| | |
| | | return service.delete(id); |
| | | } |
| | | |
| | | @GetMapping("levelList") |
| | | @ApiOperation(value = "查询已存在的告警级别") |
| | | public Response getLevelListWithSameAlarm(@RequestParam Integer deviceFlag, |
| | | @RequestParam String field, |
| | | @RequestParam Integer thresholdFlag){ |
| | | return service.getLevelListWithSameAlarm(deviceFlag,field,thresholdFlag); |
| | | } |
| | | |
| | | /** |
| | | * 检查限制阈值的范围,暂不用写 |
| | | * 检查限制阈值的范围 |
| | | * @return |
| | | */ |
| | | @GetMapping("thresholdValue") |
| | | @PostMapping("thresholdValue") |
| | | @ApiOperation(value="查询阈值范围") |
| | | @ApiIgnore |
| | | public Response getThresholdValueByLevel(@RequestBody AlarmRule alarmRule){ |
| | | return service.getThresholdValueByLevel(alarmRule); |
| | | } |