From 37d47c6a7ab0f454b948b68c987146b261117993 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期日, 13 七月 2025 22:47:21 +0800
Subject: [PATCH] 2025.7.13 动态溯源逻辑调整

---
 src/main/kotlin/com/flightfeather/uav/domain/entity/GridCell.java |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/uav/domain/entity/GridCell.java b/src/main/kotlin/com/flightfeather/uav/domain/entity/GridCell.java
index b55bf51..4ed0692 100644
--- a/src/main/kotlin/com/flightfeather/uav/domain/entity/GridCell.java
+++ b/src/main/kotlin/com/flightfeather/uav/domain/entity/GridCell.java
@@ -6,13 +6,26 @@
 @Table(name = "grid_cell")
 public class GridCell {
     @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
     private Integer id;
+
+    /**
+     * 缃戞牸绱㈠紩
+     */
+    @Column(name = "cell_index")
+    private Integer cellIndex;
 
     /**
      * 鎵�灞炵綉鏍煎垎缁刬d
      */
     @Column(name = "group_id")
     private Integer groupId;
+
+    /**
+     * 鎵�灞炰笂绾х綉鏍肩殑绱㈠紩id,濡傛灉娌℃湁鍒欎负null
+     */
+    @Column(name = "father_cell_index")
+    private Integer fatherCellIndex;
 
     /**
      * 缁忓害
@@ -87,6 +100,24 @@
     }
 
     /**
+     * 鑾峰彇缃戞牸绱㈠紩
+     *
+     * @return cell_index - 缃戞牸绱㈠紩
+     */
+    public Integer getCellIndex() {
+        return cellIndex;
+    }
+
+    /**
+     * 璁剧疆缃戞牸绱㈠紩
+     *
+     * @param cellIndex 缃戞牸绱㈠紩
+     */
+    public void setCellIndex(Integer cellIndex) {
+        this.cellIndex = cellIndex;
+    }
+
+    /**
      * 鑾峰彇鎵�灞炵綉鏍煎垎缁刬d
      *
      * @return group_id - 鎵�灞炵綉鏍煎垎缁刬d
@@ -105,6 +136,24 @@
     }
 
     /**
+     * 鑾峰彇鎵�灞炰笂绾х綉鏍肩殑绱㈠紩id,濡傛灉娌℃湁鍒欎负null
+     *
+     * @return father_cell_index - 鎵�灞炰笂绾х綉鏍肩殑绱㈠紩id,濡傛灉娌℃湁鍒欎负null
+     */
+    public Integer getFatherCellIndex() {
+        return fatherCellIndex;
+    }
+
+    /**
+     * 璁剧疆鎵�灞炰笂绾х綉鏍肩殑绱㈠紩id,濡傛灉娌℃湁鍒欎负null
+     *
+     * @param fatherCellIndex 鎵�灞炰笂绾х綉鏍肩殑绱㈠紩id,濡傛灉娌℃湁鍒欎负null
+     */
+    public void setFatherCellIndex(Integer fatherCellIndex) {
+        this.fatherCellIndex = fatherCellIndex;
+    }
+
+    /**
      * 鑾峰彇缁忓害
      *
      * @return longitude - 缁忓害

--
Gitblit v1.9.3