From 171e36997e733176cc249ebfa368a62ae3f78b75 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Wed, 20 Dec 2017 11:43:10 +0800
Subject: [PATCH] updated
---
src/main/java/com/moral/entity/Device.java | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 54 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/moral/entity/Device.java b/src/main/java/com/moral/entity/Device.java
index 83a0858..7c2670f 100644
--- a/src/main/java/com/moral/entity/Device.java
+++ b/src/main/java/com/moral/entity/Device.java
@@ -2,13 +2,20 @@
import java.util.Date;
+import javax.persistence.Id;
+
import lombok.Data;
+
+/**
+ * Instantiates a new device.
+ */
@Data
public class Device {/**
* This field was generated by MyBatis Generator. This field corresponds to the database column device.id
* @mbggenerated Wed Nov 29 16:17:59 CST 2017
*/
+ @Id
private Integer id;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column device.name
@@ -65,4 +72,51 @@
* @mbggenerated Wed Nov 29 16:17:59 CST 2017
*/
private Integer deviceVersionId;
+
+ /**
+ * Sets the uid.
+ *
+ * @param uid the new uid
+ */
+ public void setUid(Integer uid) {
+ this.operateUserId = uid;
+ }
+
+ /**
+ * Sets the device name.
+ *
+ * @param device_name the new device name
+ */
+ public void setDevice_name(String device_name) {
+ this.name = device_name;
+ }
+
+ /**
+ * Gets the device name.
+ *
+ * @return the device name
+ */
+ public String getDevice_name() {
+ return name;
+ }
+
+ /**
+ * Sets the monitorpoint.
+ *
+ * @param monitorpoint the new monitorpoint
+ */
+ public void setMonitorpoint(Integer monitorpoint) {
+ this.monitorPointId = monitorpoint;
+ }
+
+ /**
+ * Gets the status.
+ *
+ * @return the status
+ */
+ public String getStatus() {
+ return state;
+ }
+
+
}
\ No newline at end of file
--
Gitblit v1.8.0