Bladeren bron

增加报警检测相关模块

chenwen 1 jaar geleden
bovenliggende
commit
bf0985a575

+ 22 - 0
src/main/java/com/hb/proj/gather/business/DataAlarmDetector.java

@@ -0,0 +1,22 @@
+package com.hb.proj.gather.business;
+
+import java.util.List;
+import java.util.Map;
+
+import com.hb.proj.gather.model.AlarmDefineVO;
+
+/**
+ * 数据报警检测
+ * @author cwen
+ *
+ */
+public class DataAlarmDetector {
+
+	
+	public static void detect(List<AlarmDefineVO> alarms,Map<String,Float> singleData) {
+		
+		for(AlarmDefineVO  alarm : alarms) {
+			
+		}
+	}
+}

+ 32 - 0
src/main/java/com/hb/proj/gather/model/AlarmDefinePO.java

@@ -0,0 +1,32 @@
+package com.hb.proj.gather.model;
+
+import java.util.Date;
+
+import lombok.Data;
+
+@Data
+public class AlarmDefinePO {
+
+	private String alarmId;
+	
+	private String alarmSource;
+	
+	private String alarmExpress;
+	
+	private String expressDesc;
+	
+	private String alarmMode;
+	
+	private String alarmGrade;
+	
+	private Boolean usingIf;
+	
+	private String alarmDesc;
+	
+	private Boolean delIf;
+	
+	private Date modifyTime;
+	
+	private String modifyBy;
+	
+}

+ 26 - 0
src/main/java/com/hb/proj/gather/model/AlarmDefineVO.java

@@ -0,0 +1,26 @@
+package com.hb.proj.gather.model;
+
+public class AlarmDefineVO extends AlarmDefinePO {
+
+	private String paramCode;
+	
+	private String wellId;
+
+	public String getParamCode() {
+		return paramCode;
+	}
+
+	public void setParamCode(String paramCode) {
+		this.paramCode = paramCode;
+	}
+
+	public String getWellId() {
+		return wellId;
+	}
+
+	public void setWellId(String wellId) {
+		this.wellId = wellId;
+	}
+
+	
+}