From fee67ca8a0760315047a52fc4101a8f4f80b7a7f Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 11 十一月 2024 15:02:54 +0800 Subject: [PATCH] 1 --- src/main/java/com/moon/server/entity/ctrl/PubEntity.java | 164 +++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 124 insertions(+), 40 deletions(-) diff --git a/src/main/java/com/moon/server/entity/ctrl/PubEntity.java b/src/main/java/com/moon/server/entity/ctrl/PubEntity.java index 93464d5..4792c5c 100644 --- a/src/main/java/com/moon/server/entity/ctrl/PubEntity.java +++ b/src/main/java/com/moon/server/entity/ctrl/PubEntity.java @@ -2,78 +2,114 @@ import com.moon.server.entity.shujian.ColorTableEntity; import com.moon.server.entity.shujian.GradientColorTableEntity; +import com.moon.server.helper.StringHelper; import java.io.Serializable; +import java.util.Date; import java.util.List; -/** - * 鍙戝竷瀹炰綋绫� - * @author WWW - * @date 2023-09-02 - */ +@SuppressWarnings("ALL") public class PubEntity implements Serializable { private static final long serialVersionUID = 1393159573706054735L; public PubEntity() { min = 0; max = 18; - epsgCode = 104903; + epsg = 104903; + uuid = StringHelper.getGuid(); + time = StringHelper.YMDHMS2_FORMAT.format(new Date()); } + public void setDefault() { + if (null == min) { + min = 0; + } + if (null == max || max == 0) { + max = 18; + } + if (null == epsg || epsg == 0) { + epsg = 104903; + } + if (StringHelper.isEmpty(uuid)) { + uuid = StringHelper.getGuid(); + } + if (StringHelper.isEmpty(time)) { + time = StringHelper.YMDHMS2_FORMAT.format(new Date()); + } + } + + private Integer pubid; + + private Integer layerId; + + private String uuid; + /** - * 绫诲瀷锛欴OM锛孌EM锛孷ector锛孧odel + * DOM锛孌EM锛孷ector锛孧odel */ private String type; - /** - * 鏈嶅姟鍚嶇О - */ private String name; - /** - * 鏈�灏忕骇鍒� - */ private Integer min; - /** - * 鏈�澶х骇鍒� - */ private Integer max; - /** - * EPSG缂栫爜 - */ - private Integer epsgCode; + private Integer epsg; - /** - * 鐢ㄦ埛ID - */ private Integer userId; - /** - * 鐩綍缂栫爜 - */ private String dircode; - /** - * 鍗曚綅缂栫爜 - */ private String depcode; + private Integer nodata; + /** - * 鍏冩暟鎹甀D闆嗗悎 + * 0锛氫笉鎷変几锛�1 绾挎�ф媺浼革紝2 鐩存柟鍥惧潎琛★紝3 鏍囧噯宸媺浼革紝4 浼介┈鎷変几 */ + private Integer enhanceType; + + private Double enhanceFactor; + + /** + * 榛樿锛�"1,2,3"锛屾垨涓�"3,2,1" + */ + private String tile_rgb; + private List<Integer> ids; - /** - * 棰滆壊琛� - */ + private int colorTableId; + private List<ColorTableEntity> colorTable; - /** - * 娓愬彉棰滆壊琛� - */ private List<GradientColorTableEntity> gradientColorTable; + + private String time; + + public Integer getPubid() { + return pubid; + } + + public void setPubid(Integer pubid) { + this.pubid = pubid; + } + + public Integer getLayerId() { + return layerId; + } + + public void setLayerId(Integer layerId) { + this.layerId = layerId; + } + + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } public String getType() { return type; @@ -107,12 +143,12 @@ this.max = max; } - public Integer getEpsgCode() { - return epsgCode; + public Integer getEpsg() { + return epsg; } - public void setEpsgCode(Integer epsgCode) { - this.epsgCode = epsgCode; + public void setEpsg(Integer epsg) { + this.epsg = epsg; } public Integer getUserId() { @@ -139,12 +175,52 @@ this.depcode = depcode; } + public Integer getNodata() { + return nodata; + } + + public void setNodata(Integer nodata) { + this.nodata = nodata; + } + + public Integer getEnhanceType() { + return enhanceType; + } + + public void setEnhanceType(Integer enhanceType) { + this.enhanceType = enhanceType; + } + + public Double getEnhanceFactor() { + return enhanceFactor; + } + + public void setEnhanceFactor(Double enhanceFactor) { + this.enhanceFactor = enhanceFactor; + } + + public String getTile_rgb() { + return tile_rgb; + } + + public void setTile_rgb(String tile_rgb) { + this.tile_rgb = tile_rgb; + } + public List<Integer> getIds() { return ids; } public void setIds(List<Integer> ids) { this.ids = ids; + } + + public int getColorTableId() { + return colorTableId; + } + + public void setColorTableId(int colorTableId) { + this.colorTableId = colorTableId; } public List<ColorTableEntity> getColorTable() { @@ -162,4 +238,12 @@ public void setGradientColorTable(List<GradientColorTableEntity> gradientColorTable) { this.gradientColorTable = gradientColorTable; } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } } -- Gitblit v1.9.3