From f90a2ff88501c6f11cf56f1c49fdbdb7deac5535 Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Mon, 20 Oct 2025 17:11:29 +0800
Subject: [PATCH] 2025-10-20 zwy 更新设备管理增加设备入库授权验证及数量限制,限制为3台机场设备。

---
 ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryStateReceiver.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryStateReceiver.java b/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryStateReceiver.java
index 098b116..c31c9f0 100644
--- a/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryStateReceiver.java
+++ b/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryStateReceiver.java
@@ -1,5 +1,6 @@
 package com.ard.sample.manage.model.receiver;
 
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.databind.PropertyNamingStrategy;
 import com.fasterxml.jackson.databind.annotation.JsonNaming;
 import lombok.Data;
@@ -13,22 +14,33 @@
 @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
 public class BatteryStateReceiver {
 
+    //zwy 2025-10-14 修改增加注解对应json字段
+
+    @JsonProperty("firmware_version")
     private String firmwareVersion;
 
+    @JsonProperty("index")
     private Integer index;
 
+    @JsonProperty("loop_times")
     private Integer loopTimes;
 
+    @JsonProperty("capacity_percent")
     private Integer capacityPercent;
 
+    @JsonProperty("sn")
     private String sn;
 
+    @JsonProperty("sub_type")
     private Integer subType;
 
+    @JsonProperty("temperature")
     private Float temperature;
 
+    @JsonProperty("type")
     private Integer type;
 
+    @JsonProperty("voltage")
     private Integer voltage;
 
 }
\ No newline at end of file

--
Gitblit v1.9.3