|
@@ -1,8 +1,9 @@
|
|
|
-package com.zksy.api.controller;
|
|
|
|
|
|
|
+package com.zksy.web.controller.base.alarm;
|
|
|
|
|
|
|
|
-import com.zksy.api.domain.WarningThreshold;
|
|
|
|
|
-import com.zksy.api.service.WarningThresholdService;
|
|
|
|
|
-import com.zksy.common.utils.AjaxResult;
|
|
|
|
|
|
|
+import com.zksy.base.alarm.domain.WarningThreshold;
|
|
|
|
|
+import com.zksy.base.alarm.service.WarningThresholdService;
|
|
|
|
|
+import com.zksy.common.annotation.Anonymous;
|
|
|
|
|
+import com.zksy.common.core.domain.AjaxResult;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
@@ -27,6 +28,7 @@ public class WarningThresholdController {
|
|
|
private WarningThresholdService service;
|
|
private WarningThresholdService service;
|
|
|
@GetMapping("/findByPage")
|
|
@GetMapping("/findByPage")
|
|
|
@ApiOperation(value = "预警阈值信息查询分页")
|
|
@ApiOperation(value = "预警阈值信息查询分页")
|
|
|
|
|
+ @Anonymous
|
|
|
public AjaxResult findByPage(@ApiParam(value = "页码", required = true)long pageNum,
|
|
public AjaxResult findByPage(@ApiParam(value = "页码", required = true)long pageNum,
|
|
|
@ApiParam(value = "页数", required = true)long pageSize, @ApiParam(value = "设备名称", example = "反应釜A", required = false)String deviceName,
|
|
@ApiParam(value = "页数", required = true)long pageSize, @ApiParam(value = "设备名称", example = "反应釜A", required = false)String deviceName,
|
|
|
@ApiParam(value = "设备编码", required = false)String deviceCode,
|
|
@ApiParam(value = "设备编码", required = false)String deviceCode,
|
|
@@ -36,6 +38,7 @@ public class WarningThresholdController {
|
|
|
}
|
|
}
|
|
|
@GetMapping("/getWarningThresholdList")
|
|
@GetMapping("/getWarningThresholdList")
|
|
|
@ApiOperation(value = "预警阈值信息查询")
|
|
@ApiOperation(value = "预警阈值信息查询")
|
|
|
|
|
+ @Anonymous
|
|
|
public AjaxResult getWarningThresholdList(@ApiParam(value = "设备名称", required = false)String deviceName,
|
|
public AjaxResult getWarningThresholdList(@ApiParam(value = "设备名称", required = false)String deviceName,
|
|
|
@ApiParam(value = "设备编码", required = false)String deviceCode,
|
|
@ApiParam(value = "设备编码", required = false)String deviceCode,
|
|
|
@ApiParam(value = "预警类型", allowableValues = "温度预警,压力预警,湿度预警", required = false) String warningType,
|
|
@ApiParam(value = "预警类型", allowableValues = "温度预警,压力预警,湿度预警", required = false) String warningType,
|