From 7af72fa3484e88caaf8ae94124179489af64f587 Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Sat, 01 Nov 2025 17:12:43 +0800
Subject: [PATCH] 1.优化编辑kmz文件业务逻辑。 2.增加根据文件名称查询航线信息接口。
---
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