|
@@ -4,6 +4,8 @@ package com.bizmatics.controller.web;
|
|
|
import com.bizmatics.common.core.bean.ApiResult;
|
|
|
import com.bizmatics.model.BulletinAlarmConfig;
|
|
|
import com.bizmatics.model.BulletinCruxConfig;
|
|
|
+import com.bizmatics.model.DeviceAnalogVariableList;
|
|
|
+import com.bizmatics.model.DeviceAttribute;
|
|
|
import com.bizmatics.model.vo.BulletinHistoricalConfigAddVo;
|
|
|
import com.bizmatics.service.BulletinCruxConfigService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -12,7 +14,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
- * 数据看板-数据配置1
|
|
|
+ * 数据看板
|
|
|
*
|
|
|
* @author ya
|
|
|
* @since 2022-06-01
|
|
@@ -25,8 +27,9 @@ public class BulletinCruxConfigController {
|
|
|
|
|
|
/**
|
|
|
* 数据看板-数据配置查询
|
|
|
- * @param siteId 站点ID
|
|
|
- * @param id 配置id
|
|
|
+ *
|
|
|
+ * @param siteId 站点ID
|
|
|
+ * @param id 配置id
|
|
|
* @param colorType 类型
|
|
|
* @return
|
|
|
*/
|
|
@@ -34,7 +37,7 @@ public class BulletinCruxConfigController {
|
|
|
public ApiResult<List<Object>> getBulletinCruxConfigList(@RequestParam(value = "siteId") Integer siteId,
|
|
|
@RequestParam(value = "id", required = false, defaultValue = "0") Integer id,
|
|
|
@RequestParam(value = "colorType", required = false) String colorType) {
|
|
|
- return ApiResult.success(bulletinCruxConfigService.getBulletinCruxConfigList(siteId, id,colorType));
|
|
|
+ return ApiResult.success(bulletinCruxConfigService.getBulletinCruxConfigList(siteId, id, colorType));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -86,5 +89,55 @@ public class BulletinCruxConfigController {
|
|
|
return ApiResult.success();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 数据看板-数据配置2删除
|
|
|
+ *
|
|
|
+ * @param id 配置ID
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/delBulletinHistoricalConfig")
|
|
|
+ public ApiResult<Void> delBulletinHistoricalConfig(@RequestParam(value = "id") Integer id) {
|
|
|
+ bulletinCruxConfigService.delBulletinHistoricalConfig(id);
|
|
|
+ return ApiResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 数据看板-数据配置3删除
|
|
|
+ *
|
|
|
+ * @param id 配置ID
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/delBulletinAlarmConfig")
|
|
|
+ public ApiResult<Void> delBulletinAlarmConfig(@RequestParam(value = "id") Integer id) {
|
|
|
+ bulletinCruxConfigService.delBulletinAlarmConfig(id);
|
|
|
+ return ApiResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 监控设备下拉框
|
|
|
+ *
|
|
|
+ * @param siteId 站点id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getDeviceAttribute")
|
|
|
+ public ApiResult<List<DeviceAttribute>> getDeviceAttribute(@RequestParam(value = "siteId") Integer siteId) {
|
|
|
+ return ApiResult.success(bulletinCruxConfigService.getDeviceAttribute(siteId));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 变量下拉框
|
|
|
+ *
|
|
|
+ * @param monitoringEquipment 监控设备ID
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getDeviceAnalogVariableList")
|
|
|
+ public ApiResult<List<DeviceAnalogVariableList>> getDeviceAnalogVariableList(@RequestParam(value = "monitoringEquipment") Integer monitoringEquipment) {
|
|
|
+ return ApiResult.success(bulletinCruxConfigService.getDeviceAnalogVariableList(monitoringEquipment));
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|