diff --git a/aucma-report/src/main/java/com/aucma/report/domain/DeviceAlarmRecord.java b/aucma-report/src/main/java/com/aucma/report/domain/DeviceAlarmRecord.java
index d63ca88..c3357d8 100644
--- a/aucma-report/src/main/java/com/aucma/report/domain/DeviceAlarmRecord.java
+++ b/aucma-report/src/main/java/com/aucma/report/domain/DeviceAlarmRecord.java
@@ -1,5 +1,6 @@
package com.aucma.report.domain;
+import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
@@ -22,6 +23,17 @@ public class DeviceAlarmRecord extends BaseEntity {
*/
private Long objId;
+ /**
+ * 产线编号
+ */
+ private String productLineCode;
+
+ /**
+ * 产线名称
+ */
+ @Excel(name = "产线名称")
+ private String productLineName;
+
/**
* 设备编号
*/
@@ -47,12 +59,25 @@ public class DeviceAlarmRecord extends BaseEntity {
private String alarmInfo;
/**
- * 报警时间
+ * 报警开始时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @Excel(name = "报警时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
+ @Excel(name = "报警开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date alarmTime;
+ /**
+ * 报警结束时间
+ */
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @Excel(name = "报警结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
+ private Date alarmEndTime;
+
+ /**
+ * 报警时长(分钟)
+ */
+ @Excel(name = "报警时长(分钟)")
+ private BigDecimal alarmDuration;
+
/**
* 标识
*/
@@ -86,6 +111,38 @@ public class DeviceAlarmRecord extends BaseEntity {
@Excel(name = "参数值")
private String paramValue;
+ public BigDecimal getAlarmDuration() {
+ return alarmDuration;
+ }
+
+ public void setAlarmDuration(BigDecimal alarmDuration) {
+ this.alarmDuration = alarmDuration;
+ }
+
+ public String getProductLineCode() {
+ return productLineCode;
+ }
+
+ public void setProductLineCode(String productLineCode) {
+ this.productLineCode = productLineCode;
+ }
+
+ public String getProductLineName() {
+ return productLineName;
+ }
+
+ public void setProductLineName(String productLineName) {
+ this.productLineName = productLineName;
+ }
+
+ public Date getAlarmEndTime() {
+ return alarmEndTime;
+ }
+
+ public void setAlarmEndTime(Date alarmEndTime) {
+ this.alarmEndTime = alarmEndTime;
+ }
+
public String getParamCode() {
return paramCode;
}
diff --git a/aucma-report/src/main/resources/mapper/report/DeviceAlarmRecordMapper.xml b/aucma-report/src/main/resources/mapper/report/DeviceAlarmRecordMapper.xml
index b8c1d54..90f7bc9 100644
--- a/aucma-report/src/main/resources/mapper/report/DeviceAlarmRecordMapper.xml
+++ b/aucma-report/src/main/resources/mapper/report/DeviceAlarmRecordMapper.xml
@@ -18,6 +18,10 @@
+
+
+
+
@@ -39,7 +43,44 @@