|
|
@@ -0,0 +1,141 @@
|
|
|
+package com.zksy.pole.domain.po;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 网关注册
|
|
|
+ * @TableName dg_gateway_registration
|
|
|
+ */
|
|
|
+@TableName(value ="dg_gateway_registration")
|
|
|
+@Data
|
|
|
+public class DgGatewayRegistration implements Serializable {
|
|
|
+ /**
|
|
|
+ * 主键
|
|
|
+ */
|
|
|
+ @TableId
|
|
|
+ private String id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * cmd
|
|
|
+ */
|
|
|
+ private Long cmd;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 时间
|
|
|
+ */
|
|
|
+ private Date dateTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 经度
|
|
|
+ */
|
|
|
+ private Double longitude;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 纬度
|
|
|
+ */
|
|
|
+ private Double latitude;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备类型
|
|
|
+ */
|
|
|
+ private String deviceType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * mac地址
|
|
|
+ */
|
|
|
+ private String mac;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建者
|
|
|
+ */
|
|
|
+ private String createBy;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建时间
|
|
|
+ */
|
|
|
+ private Date createTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新者
|
|
|
+ */
|
|
|
+ private String updateBy;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新时间
|
|
|
+ */
|
|
|
+ private Date updateTime;
|
|
|
+
|
|
|
+ @TableField(exist = false)
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ DgGatewayRegistration other = (DgGatewayRegistration) that;
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
+ && (this.getCmd() == null ? other.getCmd() == null : this.getCmd().equals(other.getCmd()))
|
|
|
+ && (this.getDateTime() == null ? other.getDateTime() == null : this.getDateTime().equals(other.getDateTime()))
|
|
|
+ && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
|
|
|
+ && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
|
|
|
+ && (this.getDeviceType() == null ? other.getDeviceType() == null : this.getDeviceType().equals(other.getDeviceType()))
|
|
|
+ && (this.getMac() == null ? other.getMac() == null : this.getMac().equals(other.getMac()))
|
|
|
+ && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
|
|
|
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
|
|
+ && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
|
|
|
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
+ result = prime * result + ((getCmd() == null) ? 0 : getCmd().hashCode());
|
|
|
+ result = prime * result + ((getDateTime() == null) ? 0 : getDateTime().hashCode());
|
|
|
+ result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
|
|
|
+ result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
|
|
|
+ result = prime * result + ((getDeviceType() == null) ? 0 : getDeviceType().hashCode());
|
|
|
+ result = prime * result + ((getMac() == null) ? 0 : getMac().hashCode());
|
|
|
+ result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
|
|
|
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
|
|
+ result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
|
|
|
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append(getClass().getSimpleName());
|
|
|
+ sb.append(" [");
|
|
|
+ sb.append("Hash = ").append(hashCode());
|
|
|
+ sb.append(", id=").append(id);
|
|
|
+ sb.append(", cmd=").append(cmd);
|
|
|
+ sb.append(", dateTime=").append(dateTime);
|
|
|
+ sb.append(", longitude=").append(longitude);
|
|
|
+ sb.append(", latitude=").append(latitude);
|
|
|
+ sb.append(", deviceType=").append(deviceType);
|
|
|
+ sb.append(", mac=").append(mac);
|
|
|
+ sb.append(", createBy=").append(createBy);
|
|
|
+ sb.append(", createTime=").append(createTime);
|
|
|
+ sb.append(", updateBy=").append(updateBy);
|
|
|
+ sb.append(", updateTime=").append(updateTime);
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|