From 57dfb7e91ddb9e4aa5f5ef923cd3c6c34049f8e7 Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 12 Apr 2024 09:02:08 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E4=BF=AE=E6=94=B9=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E6=8A=A5=E8=AD=A6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/domain/DeviceAlarmRecord.java | 61 ++++++++++++++++++- .../mapper/report/DeviceAlarmRecordMapper.xml | 54 +++++++++++++++- 2 files changed, 111 insertions(+), 4 deletions(-) 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 @@