From bde043c8fd1a076f44c402dd56c62d401afbfb16 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 27 三月 2025 17:29:48 +0800 Subject: [PATCH] 1. 新增卫星遥测网格热力图计算逻辑 --- src/main/kotlin/com/flightfeather/uav/domain/entity/GridGroup.java | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 72 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..6e0fd9a 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,22 @@ @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; /** * @return id @@ -171,7 +188,7 @@ } /** - * @return towm_name + * @return town_name */ public String getTownName() { return townName; @@ -197,4 +214,58 @@ 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; + } } \ No newline at end of file -- Gitblit v1.9.3