From 7014fd76c199e676159ac30da6f4dbb91e3a137e Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Tue, 06 Feb 2018 16:50:31 +0800
Subject: [PATCH] 地图相关

---
 src/main/java/com/moral/entity/Device.java |   32 ++++++++++++++++++--------------
 1 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/src/main/java/com/moral/entity/Device.java b/src/main/java/com/moral/entity/Device.java
index ca4ebc2..d607954 100644
--- a/src/main/java/com/moral/entity/Device.java
+++ b/src/main/java/com/moral/entity/Device.java
@@ -1,6 +1,10 @@
 package com.moral.entity;
 
 import java.util.Date;
+import java.util.List;
+
+import javax.persistence.Id;
+import javax.persistence.Transient;
 
 import lombok.Data;
 
@@ -13,6 +17,7 @@
 	 * 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
@@ -28,12 +33,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
@@ -69,7 +74,7 @@
 	 * @mbggenerated  Wed Nov 29 16:17:59 CST 2017
 	 */
 	private Integer deviceVersionId;
-	
+	private String isDelete;
 	/**
 	 * Sets the uid.
 	 *
@@ -97,23 +102,22 @@
 		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() {
+	public String getState() {
         return state;
     }
-
-	
+    @Transient
+	private OperateUser operateUser;
+	@Transient
+	private DeviceVersion deviceVersion;
+	@Transient
+	private MonitorPoint monitorPoint;
+	@Transient
+	private List<Integer> organizationIds;
 }
\ No newline at end of file

--
Gitblit v1.8.0