From eb3dd00b0b7fcda477229d518d250f9c842b790b Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 21 十月 2025 17:45:44 +0800
Subject: [PATCH] 2025.10.21 1. 走航季度报告相关数据计算逻辑调整
---
src/main/kotlin/com/flightfeather/uav/domain/entity/GridGroup.java | 121 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 120 insertions(+), 1 deletions(-)
diff --git a/src/main/kotlin/com/flightfeather/uav/domain/entity/GridGroup.java b/src/main/kotlin/com/flightfeather/uav/domain/entity/GridGroup.java
index 8d3bd89..0736389 100644
--- a/src/main/kotlin/com/flightfeather/uav/domain/entity/GridGroup.java
+++ b/src/main/kotlin/com/flightfeather/uav/domain/entity/GridGroup.java
@@ -6,6 +6,7 @@
@Table(name = "grid_group")
public class GridGroup {
@Id
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
@@ -39,6 +40,34 @@
@Column(name = "create_time")
private Date createTime;
+
+ /**
+ * 缃戞牸杈归暱锛堝崟浣嶏細绫筹級
+ */
+ private Double length;
+
+ /**
+ * 缃戞牸绫诲瀷锛宱rigin锛氬師濮嬬綉鏍硷紱sub锛氬瓙缃戞牸锛堢粏鍒嗙綉鏍硷級
+ */
+ private String type;
+
+ /**
+ * 褰撶綉鏍肩被鍨嬫槸Sub锛堝瓙缃戞牸锛夋椂锛屾墍灞炵埗缃戞牸缁勭殑id
+ */
+ @Column(name = "father_group_id")
+ private Integer fatherGroupId;
+
+ /**
+ * 鏈�澶фí鍧愭爣
+ */
+ @Column(name = "max_xaxis")
+ private Integer maxXaxis;
+
+ /**
+ * 鏈�澶х旱鍧愭爣
+ */
+ @Column(name = "max_yaxis")
+ private Integer maxYaxis;
/**
* @return id
@@ -171,7 +200,7 @@
}
/**
- * @return towm_name
+ * @return town_name
*/
public String getTownName() {
return townName;
@@ -197,4 +226,94 @@
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
+
+ /**
+ * 鑾峰彇缃戞牸杈归暱锛堝崟浣嶏細绫筹級
+ *
+ * @return length - 缃戞牸杈归暱锛堝崟浣嶏細绫筹級
+ */
+ public Double getLength() {
+ return length;
+ }
+
+ /**
+ * 璁剧疆缃戞牸杈归暱锛堝崟浣嶏細绫筹級
+ *
+ * @param length 缃戞牸杈归暱锛堝崟浣嶏細绫筹級
+ */
+ public void setLength(Double length) {
+ this.length = length;
+ }
+
+ /**
+ * 鑾峰彇缃戞牸绫诲瀷锛宱rigin锛氬師濮嬬綉鏍硷紱sub锛氬瓙缃戞牸锛堢粏鍒嗙綉鏍硷級
+ *
+ * @return type - 缃戞牸绫诲瀷锛宱rigin锛氬師濮嬬綉鏍硷紱sub锛氬瓙缃戞牸锛堢粏鍒嗙綉鏍硷級
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * 璁剧疆缃戞牸绫诲瀷锛宱rigin锛氬師濮嬬綉鏍硷紱sub锛氬瓙缃戞牸锛堢粏鍒嗙綉鏍硷級
+ *
+ * @param type 缃戞牸绫诲瀷锛宱rigin锛氬師濮嬬綉鏍硷紱sub锛氬瓙缃戞牸锛堢粏鍒嗙綉鏍硷級
+ */
+ public void setType(String type) {
+ this.type = type == null ? null : type.trim();
+ }
+
+ /**
+ * 鑾峰彇褰撶綉鏍肩被鍨嬫槸Sub锛堝瓙缃戞牸锛夋椂锛屾墍灞炵埗缃戞牸缁勭殑id
+ *
+ * @return father_group_id - 褰撶綉鏍肩被鍨嬫槸Sub锛堝瓙缃戞牸锛夋椂锛屾墍灞炵埗缃戞牸缁勭殑id
+ */
+ public Integer getFatherGroupId() {
+ return fatherGroupId;
+ }
+
+ /**
+ * 璁剧疆褰撶綉鏍肩被鍨嬫槸Sub锛堝瓙缃戞牸锛夋椂锛屾墍灞炵埗缃戞牸缁勭殑id
+ *
+ * @param fatherGroupId 褰撶綉鏍肩被鍨嬫槸Sub锛堝瓙缃戞牸锛夋椂锛屾墍灞炵埗缃戞牸缁勭殑id
+ */
+ public void setFatherGroupId(Integer fatherGroupId) {
+ this.fatherGroupId = fatherGroupId;
+ }
+
+ /**
+ * 鑾峰彇鏈�澶фí鍧愭爣
+ *
+ * @return max_xaxis - 鏈�澶фí鍧愭爣
+ */
+ public Integer getMaxXaxis() {
+ return maxXaxis;
+ }
+
+ /**
+ * 璁剧疆鏈�澶фí鍧愭爣
+ *
+ * @param maxXaxis 鏈�澶фí鍧愭爣
+ */
+ public void setMaxXaxis(Integer maxXaxis) {
+ this.maxXaxis = maxXaxis;
+ }
+
+ /**
+ * 鑾峰彇鏈�澶х旱鍧愭爣
+ *
+ * @return max_yaxis - 鏈�澶х旱鍧愭爣
+ */
+ public Integer getMaxYaxis() {
+ return maxYaxis;
+ }
+
+ /**
+ * 璁剧疆鏈�澶х旱鍧愭爣
+ *
+ * @param maxYaxis 鏈�澶х旱鍧愭爣
+ */
+ public void setMaxYaxis(Integer maxYaxis) {
+ this.maxYaxis = maxYaxis;
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3