From 482d6f8eb5f0d8152afa4f2d7d3feb6635d5c05d Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Fri, 02 Feb 2018 14:26:30 +0800
Subject: [PATCH] updated
---
src/main/java/com/moral/entity/Device.java | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 54 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/moral/entity/Device.java b/src/main/java/com/moral/entity/Device.java
index 83a0858..ec0b15f 100644
--- a/src/main/java/com/moral/entity/Device.java
+++ b/src/main/java/com/moral/entity/Device.java
@@ -2,13 +2,21 @@
import java.util.Date;
+import javax.persistence.Id;
+import javax.persistence.Transient;
+
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
@@ -24,12 +32,12 @@
* This field was generated by MyBatis Generator. This field corresponds to the database column device.longitude
* @mbggenerated Wed Nov 29 16:17:59 CST 2017
*/
- private Float longitude;
+ private Double longitude;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column device.latitude
* @mbggenerated Wed Nov 29 16:17:59 CST 2017
*/
- private Float latitude;
+ private Double latitude;
/**
* This field was generated by MyBatis Generator. This field corresponds to the database column device.mac
* @mbggenerated Wed Nov 29 16:17:59 CST 2017
@@ -65,4 +73,48 @@
* @mbggenerated Wed Nov 29 16:17:59 CST 2017
*/
private Integer deviceVersionId;
+ private String isDelete;
+ /**
+ * 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;
+ }
+
+
+
+ /**
+ * Gets the status.
+ *
+ * @return the status
+ */
+ public String getState() {
+ return state;
+ }
+ @Transient
+ private OperateUser operateUser;
+ @Transient
+ private DeviceVersion deviceVersion;
+ @Transient
+ private MonitorPoint monitorPoint;
}
\ No newline at end of file
--
Gitblit v1.8.0