From a836f03a5d1fbfa81e147d09ffdfa87ba3975c13 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 18 三月 2025 16:45:02 +0800
Subject: [PATCH] 1
---
server/jtt808_parent/jtt808-server/src/main/java/org/yzh/web/model/entity/DeviceDO.java | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 107 insertions(+), 0 deletions(-)
diff --git a/server/jtt808_parent/jtt808-server/src/main/java/org/yzh/web/model/entity/DeviceDO.java b/server/jtt808_parent/jtt808-server/src/main/java/org/yzh/web/model/entity/DeviceDO.java
new file mode 100644
index 0000000..b4d1b34
--- /dev/null
+++ b/server/jtt808_parent/jtt808-server/src/main/java/org/yzh/web/model/entity/DeviceDO.java
@@ -0,0 +1,107 @@
+package org.yzh.web.model.entity;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+import org.yzh.protocol.t808.T0200;
+
+import java.util.Objects;
+
+@Data
+public class DeviceDO {
+
+ @Schema(description = "璁惧id")
+ private String deviceId;
+ @Schema(description = "璁惧鎵嬫満鍙�")
+ private String mobileNo;
+ @Schema(description = "杞︾墝鍙�")
+ private String plateNo;
+ @Schema(description = "鏈烘瀯id")
+ protected int agencyId;
+ @Schema(description = "鍙告満id")
+ protected int driverId;
+ @Schema(description = "鍗忚鐗堟湰鍙�")
+ private int protocolVersion;
+ @Schema(description = "鐢垫睜鐢靛帇")
+ private Float batteryVoltage;
+ @Schema(description = "瀹炴椂鐘舵��")
+ private T0200 location;
+
+ public DeviceDO() {
+ }
+
+ public String getDeviceId() {
+ return deviceId;
+ }
+
+ public void setDeviceId(String deviceId) {
+ this.deviceId = deviceId;
+ }
+
+ public String getMobileNo() {
+ return mobileNo;
+ }
+
+ public void setMobileNo(String mobileNo) {
+ this.mobileNo = mobileNo;
+ }
+
+ public String getPlateNo() {
+ return plateNo;
+ }
+
+ public void setPlateNo(String plateNo) {
+ this.plateNo = plateNo;
+ }
+
+ public int getProtocolVersion() {
+ return protocolVersion;
+ }
+
+ public void setProtocolVersion(int protocolVersion) {
+ this.protocolVersion = protocolVersion;
+ }
+
+ public T0200 getLocation() {
+ return location;
+ }
+
+ public void setLocation(T0200 location) {
+ this.location = location;
+ }
+
+ public DeviceDO mobileNo(String mobileNo) {
+ this.mobileNo = mobileNo;
+ return this;
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (this == that) {
+ return true;
+ }
+ if (that == null) {
+ return false;
+ }
+ if (getClass() != that.getClass()) {
+ return false;
+ }
+ DeviceDO other = (DeviceDO) that;
+ return Objects.equals(this.deviceId, other.deviceId);
+ }
+
+ @Override
+ public int hashCode() {
+ return ((deviceId == null) ? 0 : deviceId.hashCode());
+ }
+
+ @Override
+ public String toString() {
+ final StringBuilder sb = new StringBuilder(256);
+ sb.append("DeviceDO{deviceId=").append(deviceId);
+ sb.append(", mobileNo=").append(mobileNo);
+ sb.append(", plateNo=").append(plateNo);
+ sb.append(", protocolVersion=").append(protocolVersion);
+ sb.append('}');
+ return sb.toString();
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.3