From de026326a9df6f4a2192e99cf0e53e7e7b6d445d Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Fri, 24 Oct 2025 17:29:33 +0800
Subject: [PATCH] 1.整理文件管理文件路径。 2.新增航线信息接口业务。 3.优化KMZ文件接口业务逻辑。 4.pom文件修改。 5.增加业务工具类。 6.增加部分业务注解。 7.增加修改无人机状态方法。

---
 ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryReceiver.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryReceiver.java b/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryReceiver.java
index 768fb7f..115666f 100644
--- a/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryReceiver.java
+++ b/ard-sample/src/main/java/com/ard/sample/manage/model/receiver/BatteryReceiver.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;
@@ -14,14 +15,19 @@
 @Data
 @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
 public class BatteryReceiver {
-
+    // zwy 2025-10-14 修改增加注解对应json字段
+    @JsonProperty("batteries")
     private List<BatteryStateReceiver> batteries;
 
+    @JsonProperty("capacity_percent")
     private Integer capacityPercent;
 
+    @JsonProperty("landing_power")
     private Integer landingPower;
 
+    @JsonProperty("remain_flight_time")
     private Integer remainFlightTime;
 
+    @JsonProperty("return_home_power")
     private Integer returnHomePower;
 }

--
Gitblit v1.9.3