From 58d7b0e12ccd92cf3934f6582b51b5fbcecaa39a Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期四, 09 五月 2024 09:42:41 +0800
Subject: [PATCH] 修改注入方式
---
springboot-vue3/src/main/java/com/example/springboot/entity/alarmmg.java | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/springboot-vue3/src/main/java/com/example/springboot/entity/alarmmg.java b/springboot-vue3/src/main/java/com/example/springboot/entity/alarmmg.java
index 3ddeac5..cde8841 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/entity/alarmmg.java
+++ b/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;
+ }
+
}
--
Gitblit v1.8.0