From 94fee0b511279679b43e210878d3d36e5a14384b Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 30 九月 2025 09:14:10 +0800
Subject: [PATCH] 2025.9.30 1. 新增走航任务统计功能

---
 src/main/kotlin/com/flightfeather/uav/domain/entity/Mission.java |   91 ++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 84 insertions(+), 7 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/uav/domain/entity/Mission.java b/src/main/kotlin/com/flightfeather/uav/domain/entity/Mission.java
index 68280ab..9d045ab 100644
--- a/src/main/kotlin/com/flightfeather/uav/domain/entity/Mission.java
+++ b/src/main/kotlin/com/flightfeather/uav/domain/entity/Mission.java
@@ -20,6 +20,9 @@
     @Column(name = "end_time")
     private Date endTime;
 
+    /**
+     * 鏁版嵁鏄惁宸茬粡鎷夊彇鍏ュ簱
+     */
     @Column(name = "data_pulled")
     private Boolean dataPulled;
 
@@ -53,15 +56,31 @@
     private Float kilometres;
 
     /**
-     * 鎵�灞炲尯鍩�
+     * 璧拌埅鍥寸粫涓昏鍖哄煙
      */
     private String region;
+
+    /**
+     * 璧拌埅鍥寸粫涓績鍖哄煙鍗婂緞锛屽叕閲�
+     */
+    private Float radius;
 
     /**
      * 绌烘皵璐ㄩ噺绛夌骇
      */
     @Column(name = "pollution_degree")
     private String pollutionDegree;
+
+    /**
+     * 绌烘皵璐ㄩ噺绛夌骇鎸囨暟AQI
+     */
+    private Integer aqi;
+
+    /**
+     * 棣栬姹℃煋鍥犲瓙
+     */
+    @Column(name = "main_factor")
+    private String mainFactor;
 
     /**
      * @return mission_code
@@ -134,14 +153,18 @@
     }
 
     /**
-     * @return data_pulled
+     * 鑾峰彇鏁版嵁鏄惁宸茬粡鎷夊彇鍏ュ簱
+     *
+     * @return data_pulled - 鏁版嵁鏄惁宸茬粡鎷夊彇鍏ュ簱
      */
     public Boolean getDataPulled() {
         return dataPulled;
     }
 
     /**
-     * @param dataPulled
+     * 璁剧疆鏁版嵁鏄惁宸茬粡鎷夊彇鍏ュ簱
+     *
+     * @param dataPulled 鏁版嵁鏄惁宸茬粡鎷夊彇鍏ュ簱
      */
     public void setDataPulled(Boolean dataPulled) {
         this.dataPulled = dataPulled;
@@ -278,21 +301,39 @@
     }
 
     /**
-     * 鑾峰彇鎵�灞炲尯鍩�
+     * 鑾峰彇璧拌埅鍥寸粫涓昏鍖哄煙
      *
-     * @return region - 鎵�灞炲尯鍩�
+     * @return region - 璧拌埅鍥寸粫涓昏鍖哄煙
      */
     public String getRegion() {
         return region;
     }
 
     /**
-     * 璁剧疆鎵�灞炲尯鍩�
+     * 璁剧疆璧拌埅鍥寸粫涓昏鍖哄煙
      *
-     * @param region 鎵�灞炲尯鍩�
+     * @param region 璧拌埅鍥寸粫涓昏鍖哄煙
      */
     public void setRegion(String region) {
         this.region = region == null ? null : region.trim();
+    }
+
+    /**
+     * 鑾峰彇璧拌埅鍥寸粫涓績鍖哄煙鍗婂緞锛屽叕閲�
+     *
+     * @return radius - 璧拌埅鍥寸粫涓績鍖哄煙鍗婂緞锛屽叕閲�
+     */
+    public Float getRadius() {
+        return radius;
+    }
+
+    /**
+     * 璁剧疆璧拌埅鍥寸粫涓績鍖哄煙鍗婂緞锛屽叕閲�
+     *
+     * @param radius 璧拌埅鍥寸粫涓績鍖哄煙鍗婂緞锛屽叕閲�
+     */
+    public void setRadius(Float radius) {
+        this.radius = radius;
     }
 
     /**
@@ -312,4 +353,40 @@
     public void setPollutionDegree(String pollutionDegree) {
         this.pollutionDegree = pollutionDegree == null ? null : pollutionDegree.trim();
     }
+
+    /**
+     * 鑾峰彇绌烘皵璐ㄩ噺绛夌骇鎸囨暟AQI
+     *
+     * @return aqi - 绌烘皵璐ㄩ噺绛夌骇鎸囨暟AQI
+     */
+    public Integer getAqi() {
+        return aqi;
+    }
+
+    /**
+     * 璁剧疆绌烘皵璐ㄩ噺绛夌骇鎸囨暟AQI
+     *
+     * @param aqi 绌烘皵璐ㄩ噺绛夌骇鎸囨暟AQI
+     */
+    public void setAqi(Integer aqi) {
+        this.aqi = aqi;
+    }
+
+    /**
+     * 鑾峰彇棣栬姹℃煋鍥犲瓙
+     *
+     * @return main_factor - 棣栬姹℃煋鍥犲瓙
+     */
+    public String getMainFactor() {
+        return mainFactor;
+    }
+
+    /**
+     * 璁剧疆棣栬姹℃煋鍥犲瓙
+     *
+     * @param mainFactor 棣栬姹℃煋鍥犲瓙
+     */
+    public void setMainFactor(String mainFactor) {
+        this.mainFactor = mainFactor == null ? null : mainFactor.trim();
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3