|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.os.ems.base.controller;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
@ -126,6 +127,24 @@ public class EmsAlarmActionStepController extends BaseController
|
|
|
|
|
return success(steps);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据报警数据信息查询对应的措施步骤列表(POST方式,避免URL编码问题)
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('ems/base:emsAlarmActionStep:query')")
|
|
|
|
|
@PostMapping(value = "/getByAlarmInfo")
|
|
|
|
|
public AjaxResult getStepsByAlarmInfoPost(@RequestBody Map<String, String> params)
|
|
|
|
|
{
|
|
|
|
|
String monitorId = params.get("monitorId");
|
|
|
|
|
String cause = params.get("cause");
|
|
|
|
|
|
|
|
|
|
if (monitorId == null || cause == null) {
|
|
|
|
|
return error("参数不能为空:monitorId=" + monitorId + ", cause=" + cause);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<EmsAlarmActionStep> steps = emsAlarmActionStepService.selectActionStepsByAlarmInfo(monitorId, cause);
|
|
|
|
|
return success(steps);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量保存措施步骤(包含图片信息)
|
|
|
|
|
*/
|
|
|
|
|