From 698f8f0f22af4c66581ce284407e986ca036aec6 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 23 一月 2025 17:10:26 +0800 Subject: [PATCH] 1. 网格细分逻辑(编写中) --- src/main/kotlin/com/flightfeather/uav/domain/entity/GridCell.java | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 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..16e1d75 100644 --- a/src/main/kotlin/com/flightfeather/uav/domain/entity/GridCell.java +++ b/src/main/kotlin/com/flightfeather/uav/domain/entity/GridCell.java @@ -9,10 +9,22 @@ 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 +99,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 +135,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