修改告警策略,绑定监测点

This commit is contained in:
wr
2023-04-13 18:45:00 +08:00
parent 9aa8355364
commit 1f1e262a14
6 changed files with 44 additions and 31 deletions

View File

@@ -122,9 +122,11 @@ public class ThsWarnStrategyController extends BaseController {
@GetMapping("/echoMonitor")
@ApiOperation(value = "监测点回显")
public HttpResult<StrategyParam.MonitorTree> echoMonitor(@Param("deptId") String deptId,@Param("type") Integer type) {
public HttpResult<StrategyParam.MonitorTree> echoMonitor(@Param("deptId") String deptId,
@Param("type") Integer type,
@Param("grade") Integer grade) {
String methodDescribe = getMethodDescribe("echoMonitor");
StrategyParam.MonitorTree info = thsWarnStrategyService.echoMonitor(deptId, type);
StrategyParam.MonitorTree info = thsWarnStrategyService.echoMonitor(deptId, type,grade);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, info, methodDescribe);
}