From 3bf4a89e8470abf09ca61db5a5e8e8e84f45455b Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Wed, 30 Sep 2020 14:12:56 +0800
Subject: [PATCH] 添加标识符

---
 src/main/java/com/moral/entity/Device.java |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/src/main/java/com/moral/entity/Device.java b/src/main/java/com/moral/entity/Device.java
index 757f78e..a69aa52 100644
--- a/src/main/java/com/moral/entity/Device.java
+++ b/src/main/java/com/moral/entity/Device.java
@@ -1,7 +1,9 @@
 package com.moral.entity;
 
 import java.util.Date;
+import java.util.List;
 
+import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
 import javax.persistence.Transient;
 
@@ -12,11 +14,13 @@
  * Instantiates a new device.
  */
 @Data
-public class Device {/**
+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
+	@GeneratedValue(generator = "JDBC")
 	private Integer id;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column device.name
@@ -32,12 +36,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 double 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 double 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
@@ -74,6 +78,7 @@
 	 */
 	private Integer deviceVersionId;
 	private String isDelete;
+	private Integer professionId;
 	/**
 	 * Sets the uid.
 	 *
@@ -83,15 +88,6 @@
 		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.
 	 *
@@ -117,4 +113,13 @@
 	private DeviceVersion deviceVersion;
 	@Transient
 	private MonitorPoint monitorPoint;
+	@Transient
+	private List<Integer> organizationIds;
+    @Transient
+    private Profession profession;
+    @Transient
+    private DeviceProperty deviceProperty;
+
+	@Transient
+	private Boolean hasWindInfo;
 }
\ No newline at end of file

--
Gitblit v1.8.0