wu
2024-02-01 0810f5bb75f043dd7b8ffa024b415e9188677d35
springboot-vue3/src/main/java/com/example/springboot/entity/alarmmg.java
@@ -1,13 +1,15 @@
package com.example.springboot.entity;
import java.util.Date;
//报警信息表
public class alarmmg {
  private Integer id;
  private String content;
  private Date timeon;
  private Date endTime;
  private Integer id;//自增id
  private String content;//报警内容
  private Date timeon;//报警时间
  private Date endTime;//报警结束时间
  private String timeons;//报警时间,非时间戳类型
  // 自增id
  public void setid(Integer id) {
    this.id = id;
  }
@@ -16,6 +18,7 @@
    return id;
  }
  // 报警内容
  public void setontent(String content) {
    this.content = content;
  }
@@ -24,6 +27,7 @@
    return content;
  }
  // 报警开始时间
  public void settimeon(Date timeon) {
    this.timeon = timeon;
  }
@@ -32,6 +36,7 @@
    return timeon;
  }
  // 报警结束时间
  public void setendTime(Date endTime) {
    this.endTime = endTime;
  }
@@ -40,4 +45,12 @@
    return endTime;
  }
  public void settimeons(String timeons) {
    this.timeons = timeons;
  }
  public String gettimeons() {
    return timeons;
  }
}