From 56e81073389ebb511562ddf85e1b22a8db0585a9 Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Thu, 25 Jan 2018 09:33:14 +0800
Subject: [PATCH] 设备管理

---
 src/main/java/com/moral/entity/Device.java |  217 ++++++++++++++++++++++++++---------------------------
 1 files changed, 106 insertions(+), 111 deletions(-)

diff --git a/src/main/java/com/moral/entity/Device.java b/src/main/java/com/moral/entity/Device.java
index 4b8d053..757f78e 100644
--- a/src/main/java/com/moral/entity/Device.java
+++ b/src/main/java/com/moral/entity/Device.java
@@ -2,124 +2,119 @@
 
 import java.util.Date;
 
-public class Device {
-    private Integer id;
+import javax.persistence.Id;
+import javax.persistence.Transient;
 
-    private String name;
+import lombok.Data;
 
-    private String address;
 
-    private Float longitude;
+/**
+ * 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
+	 * @mbggenerated  Wed Nov 29 16:17:59 CST 2017
+	 */
+	private String name;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column device.address
+	 * @mbggenerated  Wed Nov 29 16:17:59 CST 2017
+	 */
+	private String address;
+	/**
+	 * 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;
+	/**
+	 * 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;
+	/**
+	 * 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
+	 */
+	private String mac;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column device.operate_user_id
+	 * @mbggenerated  Wed Nov 29 16:17:59 CST 2017
+	 */
+	private Integer operateUserId;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column device.state
+	 * @mbggenerated  Wed Nov 29 16:17:59 CST 2017
+	 */
+	private String state;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column device.create_time
+	 * @mbggenerated  Wed Nov 29 16:17:59 CST 2017
+	 */
+	private Date createTime;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column device.install_time
+	 * @mbggenerated  Wed Nov 29 16:17:59 CST 2017
+	 */
+	private Date installTime;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column device.monitor_point_id
+	 * @mbggenerated  Wed Nov 29 16:17:59 CST 2017
+	 */
+	private Integer monitorPointId;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column device.device_version_id
+	 * @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;
+	}
 
-    private Float latitude;
+	/**
+	 * 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;
+	}
 
-    private String mac;
 
-    private String state;
 
-    private Integer operateUserId;
-
-    private Date createTime;
-
-    private Date installTime;
-
-    private Integer monitorPointId;
-
-    private Integer deviceVersionId;
-
-    public Integer getId() {
-        return id;
-    }
-
-    public void setId(Integer id) {
-        this.id = id;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    public String getAddress() {
-        return address;
-    }
-
-    public void setAddress(String address) {
-        this.address = address;
-    }
-
-    public Float getLongitude() {
-        return longitude;
-    }
-
-    public void setLongitude(Float longitude) {
-        this.longitude = longitude;
-    }
-
-    public Float getLatitude() {
-        return latitude;
-    }
-
-    public void setLatitude(Float latitude) {
-        this.latitude = latitude;
-    }
-
-    public String getMac() {
-        return mac;
-    }
-
-    public void setMac(String mac) {
-        this.mac = mac;
-    }
-
-    public String getState() {
+	/**
+	 * Gets the status.
+	 *
+	 * @return the status
+	 */
+	public String getState() {
         return state;
     }
-
-    public void setState(String state) {
-        this.state = state;
-    }
-
-    public Integer getOperateUserId() {
-        return operateUserId;
-    }
-
-    public void setOperateUserId(Integer operateUserId) {
-        this.operateUserId = operateUserId;
-    }
-
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    public Date getInstallTime() {
-        return installTime;
-    }
-
-    public void setInstallTime(Date installTime) {
-        this.installTime = installTime;
-    }
-
-    public Integer getMonitorPointId() {
-        return monitorPointId;
-    }
-
-    public void setMonitorPointId(Integer monitorPointId) {
-        this.monitorPointId = monitorPointId;
-    }
-
-    public Integer getDeviceVersionId() {
-        return deviceVersionId;
-    }
-
-    public void setDeviceVersionId(Integer deviceVersionId) {
-        this.deviceVersionId = deviceVersionId;
-    }
+    @Transient
+	private OperateUser operateUser;
+	@Transient
+	private DeviceVersion deviceVersion;
+	@Transient
+	private MonitorPoint monitorPoint;
 }
\ No newline at end of file

--
Gitblit v1.8.0