feiyu02
2025-02-07 e133600480d5f688a8375db7708fe531b4726f4a
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;
    /**
@@ -49,6 +50,12 @@
     * 网格类型,origin:原始网格;sub:子网格(细分网格)
     */
    private String type;
    /**
     * 当网格类型是Sub(子网格)时,所属父网格组的id
     */
    @Column(name = "father_group_id")
    private Integer fatherGroupId;
    /**
     * @return id
@@ -243,4 +250,22 @@
    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;
    }
}