|
|
@@ -2,7 +2,6 @@ package org.jetlinks.community.device.entity;
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
-import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
import org.hswebframework.ezorm.rdb.mapping.annotation.ColumnType;
|
|
|
@@ -10,7 +9,6 @@ import org.hswebframework.ezorm.rdb.mapping.annotation.JsonCodec;
|
|
|
import org.hswebframework.web.api.crud.entity.GenericTreeSortSupportEntity;
|
|
|
import javax.persistence.Column;
|
|
|
import javax.persistence.Table;
|
|
|
-import javax.persistence.Transient;
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
import java.sql.JDBCType;
|
|
|
import java.util.*;
|
|
|
@@ -33,11 +31,14 @@ public class GeoRegionEntity extends GenericTreeSortSupportEntity<String> {
|
|
|
private GeoJson.Feature region;
|
|
|
|
|
|
// @Transient
|
|
|
- private String title;
|
|
|
+// private String title;
|
|
|
|
|
|
//子菜单
|
|
|
private List<GeoRegionEntity> children;
|
|
|
|
|
|
+ public String getTitle(){
|
|
|
+ return this.name;
|
|
|
+ }
|
|
|
@Override
|
|
|
public List<GeoRegionEntity> getChildren() {
|
|
|
return children;
|