From 58f51c889aecd7065a82b99d29b3ef4aee891ec1 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Wed, 25 Oct 2017 16:31:19 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/main/java/com/moral/monitor/entity/Equipment.java |   99 +++++++++++++++++++++++++++----------------------
 1 files changed, 54 insertions(+), 45 deletions(-)

diff --git a/src/main/java/com/moral/monitor/entity/Equipment.java b/src/main/java/com/moral/monitor/entity/Equipment.java
index 62c8236..5f85f86 100644
--- a/src/main/java/com/moral/monitor/entity/Equipment.java
+++ b/src/main/java/com/moral/monitor/entity/Equipment.java
@@ -2,33 +2,42 @@
 
 import java.util.Date;
 
-/**���������
- * Created by a on 2017/4/10.
- */
 public class Equipment {
-    private int id;
+    private Integer id;
+
     private String name;
+
     private String address;
-    private double longitude;
-    private double latitude;
+
+    private Double longitude;
+
+    private Double latitude;
+
     private String mac;
-    private String province;
-    private String city;
-    private String area;
-    private int  state;
+
+    private Integer state;
+
     private Date time;
+
     private String installer;
+
     private String repairman;
-    private String fei;
-    private String statedesc;
 
+    private String province;
 
+    private String city;
 
-    public int getId() {
+    private String area;
+
+    private String monitorpoint;
+
+    private String ownerId;
+
+    public Integer getId() {
         return id;
     }
 
-    public void setId(int id) {
+    public void setId(Integer id) {
         this.id = id;
     }
 
@@ -37,7 +46,7 @@
     }
 
     public void setName(String name) {
-        this.name = name;
+        this.name = name == null ? null : name.trim();
     }
 
     public String getAddress() {
@@ -45,22 +54,22 @@
     }
 
     public void setAddress(String address) {
-        this.address = address;
+        this.address = address == null ? null : address.trim();
     }
 
-    public double getLongitude() {
+    public Double getLongitude() {
         return longitude;
     }
 
-    public void setLongitude(double longitude) {
+    public void setLongitude(Double longitude) {
         this.longitude = longitude;
     }
 
-    public double getLatitude() {
+    public Double getLatitude() {
         return latitude;
     }
 
-    public void setLatitude(double latitude) {
+    public void setLatitude(Double latitude) {
         this.latitude = latitude;
     }
 
@@ -69,14 +78,14 @@
     }
 
     public void setMac(String mac) {
-        this.mac = mac;
+        this.mac = mac == null ? null : mac.trim();
     }
 
-    public int getState() {
+    public Integer getState() {
         return state;
     }
 
-    public void setState(int state) {
+    public void setState(Integer state) {
         this.state = state;
     }
 
@@ -93,7 +102,7 @@
     }
 
     public void setInstaller(String installer) {
-        this.installer = installer;
+        this.installer = installer == null ? null : installer.trim();
     }
 
     public String getRepairman() {
@@ -101,23 +110,7 @@
     }
 
     public void setRepairman(String repairman) {
-        this.repairman = repairman;
-    }
-
-    public String getFei() {
-        return fei;
-    }
-
-    public void setFei(String fei) {
-        this.fei = fei;
-    }
-
-    public String getStatedesc() {
-        return statedesc;
-    }
-
-    public void setStatedesc(String statedesc) {
-        this.statedesc = statedesc;
+        this.repairman = repairman == null ? null : repairman.trim();
     }
 
     public String getProvince() {
@@ -125,7 +118,7 @@
     }
 
     public void setProvince(String province) {
-        this.province = province;
+        this.province = province == null ? null : province.trim();
     }
 
     public String getCity() {
@@ -133,7 +126,7 @@
     }
 
     public void setCity(String city) {
-        this.city = city;
+        this.city = city == null ? null : city.trim();
     }
 
     public String getArea() {
@@ -141,6 +134,22 @@
     }
 
     public void setArea(String area) {
-        this.area = area;
+        this.area = area == null ? null : area.trim();
     }
-}
+
+    public String getMonitorpoint() {
+        return monitorpoint;
+    }
+
+    public void setMonitorpoint(String monitorpoint) {
+        this.monitorpoint = monitorpoint == null ? null : monitorpoint.trim();
+    }
+
+    public String getOwnerId() {
+        return ownerId;
+    }
+
+    public void setOwnerId(String ownerId) {
+        this.ownerId = ownerId == null ? null : ownerId.trim();
+    }
+}
\ No newline at end of file

--
Gitblit v1.8.0