From 2096fcf9d948dbdcea2aae6f29d508086da9793b Mon Sep 17 00:00:00 2001
From: 于紫祥_1901 <email@yuzixiang_1910>
Date: Thu, 22 Oct 2020 09:09:05 +0800
Subject: [PATCH] updata
---
src/main/java/com/moral/entity/Device.java | 52 +++++++++++++++++++++++++++++-----------------------
1 files changed, 29 insertions(+), 23 deletions(-)
diff --git a/src/main/java/com/moral/entity/Device.java b/src/main/java/com/moral/entity/Device.java
index ca4ebc2..a69aa52 100644
--- a/src/main/java/com/moral/entity/Device.java
+++ b/src/main/java/com/moral/entity/Device.java
@@ -1,6 +1,11 @@
package com.moral.entity;
import java.util.Date;
+import java.util.List;
+
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Transient;
import lombok.Data;
@@ -9,10 +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
@@ -28,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 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 +77,8 @@
* @mbggenerated Wed Nov 29 16:17:59 CST 2017
*/
private Integer deviceVersionId;
-
+ private String isDelete;
+ private Integer professionId;
/**
* Sets the uid.
*
@@ -80,15 +89,6 @@
}
/**
- * 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
@@ -97,23 +97,29 @@
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;
+ @Transient
+ private Profession profession;
+ @Transient
+ private DeviceProperty deviceProperty;
-
+ @Transient
+ private Boolean hasWindInfo;
}
\ No newline at end of file
--
Gitblit v1.8.0