From 29383149f7040d89ae00ad48dc48bbcf46587946 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 01 九月 2025 17:32:53 +0800
Subject: [PATCH] 2025.9.1 1. 新增走航任务统计功能(待完成)

---
 src/main/kotlin/com/flightfeather/uav/domain/entity/Mission.java |  224 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 211 insertions(+), 13 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 4272c58..e4367b9 100644
--- a/src/main/kotlin/com/flightfeather/uav/domain/entity/Mission.java
+++ b/src/main/kotlin/com/flightfeather/uav/domain/entity/Mission.java
@@ -20,14 +20,50 @@
     @Column(name = "end_time")
     private Date endTime;
 
+    @Column(name = "data_pulled")
+    private Boolean dataPulled;
+
+    @Column(name = "province_code")
+    private String provinceCode;
+
+    @Column(name = "province_name")
+    private String provinceName;
+
+    @Column(name = "city_code")
+    private String cityCode;
+
+    @Column(name = "city_name")
+    private String cityName;
+
+    @Column(name = "district_code")
+    private String districtCode;
+
     @Column(name = "district_name")
     private String districtName;
 
+    @Column(name = "town_code")
+    private String townCode;
+
+    @Column(name = "town_name")
+    private String townName;
+
     /**
-     * 鏁版嵁鏄惁宸茬粡鎷夊彇鍏ュ簱
+     * 閲岀▼鏁帮紝鍏噷
      */
-    @Column(name = "data_pulled")
-    private Boolean dataPulled;
+    private Float kilometres;
+
+    /**
+     * 鎵�灞炲尯鍩�
+     */
+    private String region;
+
+    /**
+     * 绌烘皵璐ㄩ噺绛夌骇
+     */
+    @Column(name = "pollution_degree")
+    private String pollutionDegree;
+
+    private Integer aqi;
 
     /**
      * @return mission_code
@@ -100,6 +136,90 @@
     }
 
     /**
+     * @return data_pulled
+     */
+    public Boolean getDataPulled() {
+        return dataPulled;
+    }
+
+    /**
+     * @param dataPulled
+     */
+    public void setDataPulled(Boolean dataPulled) {
+        this.dataPulled = dataPulled;
+    }
+
+    /**
+     * @return province_code
+     */
+    public String getProvinceCode() {
+        return provinceCode;
+    }
+
+    /**
+     * @param provinceCode
+     */
+    public void setProvinceCode(String provinceCode) {
+        this.provinceCode = provinceCode == null ? null : provinceCode.trim();
+    }
+
+    /**
+     * @return province_name
+     */
+    public String getProvinceName() {
+        return provinceName;
+    }
+
+    /**
+     * @param provinceName
+     */
+    public void setProvinceName(String provinceName) {
+        this.provinceName = provinceName == null ? null : provinceName.trim();
+    }
+
+    /**
+     * @return city_code
+     */
+    public String getCityCode() {
+        return cityCode;
+    }
+
+    /**
+     * @param cityCode
+     */
+    public void setCityCode(String cityCode) {
+        this.cityCode = cityCode == null ? null : cityCode.trim();
+    }
+
+    /**
+     * @return city_name
+     */
+    public String getCityName() {
+        return cityName;
+    }
+
+    /**
+     * @param cityName
+     */
+    public void setCityName(String cityName) {
+        this.cityName = cityName == null ? null : cityName.trim();
+    }
+
+    /**
+     * @return district_code
+     */
+    public String getDistrictCode() {
+        return districtCode;
+    }
+
+    /**
+     * @param districtCode
+     */
+    public void setDistrictCode(String districtCode) {
+        this.districtCode = districtCode == null ? null : districtCode.trim();
+    }
+
+    /**
      * @return district_name
      */
     public String getDistrictName() {
@@ -114,20 +234,98 @@
     }
 
     /**
-     * 鑾峰彇鏁版嵁鏄惁宸茬粡鎷夊彇鍏ュ簱
-     *
-     * @return data_pulled - 鏁版嵁鏄惁宸茬粡鎷夊彇鍏ュ簱
+     * @return town_code
      */
-    public Boolean getDataPulled() {
-        return dataPulled;
+    public String getTownCode() {
+        return townCode;
     }
 
     /**
-     * 璁剧疆鏁版嵁鏄惁宸茬粡鎷夊彇鍏ュ簱
-     *
-     * @param dataPulled 鏁版嵁鏄惁宸茬粡鎷夊彇鍏ュ簱
+     * @param townCode
      */
-    public void setDataPulled(Boolean dataPulled) {
-        this.dataPulled = dataPulled;
+    public void setTownCode(String townCode) {
+        this.townCode = townCode == null ? null : townCode.trim();
+    }
+
+    /**
+     * @return town_name
+     */
+    public String getTownName() {
+        return townName;
+    }
+
+    /**
+     * @param townName
+     */
+    public void setTownName(String townName) {
+        this.townName = townName == null ? null : townName.trim();
+    }
+
+    /**
+     * 鑾峰彇閲岀▼鏁帮紝鍏噷
+     *
+     * @return kilometres - 閲岀▼鏁帮紝鍏噷
+     */
+    public Float getKilometres() {
+        return kilometres;
+    }
+
+    /**
+     * 璁剧疆閲岀▼鏁帮紝鍏噷
+     *
+     * @param kilometres 閲岀▼鏁帮紝鍏噷
+     */
+    public void setKilometres(Float kilometres) {
+        this.kilometres = kilometres;
+    }
+
+    /**
+     * 鑾峰彇鎵�灞炲尯鍩�
+     *
+     * @return region - 鎵�灞炲尯鍩�
+     */
+    public String getRegion() {
+        return region;
+    }
+
+    /**
+     * 璁剧疆鎵�灞炲尯鍩�
+     *
+     * @param region 鎵�灞炲尯鍩�
+     */
+    public void setRegion(String region) {
+        this.region = region == null ? null : region.trim();
+    }
+
+    /**
+     * 鑾峰彇绌烘皵璐ㄩ噺绛夌骇
+     *
+     * @return pollution_degree - 绌烘皵璐ㄩ噺绛夌骇
+     */
+    public String getPollutionDegree() {
+        return pollutionDegree;
+    }
+
+    /**
+     * 璁剧疆绌烘皵璐ㄩ噺绛夌骇
+     *
+     * @param pollutionDegree 绌烘皵璐ㄩ噺绛夌骇
+     */
+    public void setPollutionDegree(String pollutionDegree) {
+        this.pollutionDegree = pollutionDegree == null ? null : pollutionDegree.trim();
+    }
+
+    /**
+     * @return aqi
+     */
+    public Integer getAqi() {
+        return aqi;
+    }
+
+    /**
+     * @param aqi
+     */
+    public void setAqi(Integer aqi) {
+        this.aqi = aqi;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3