From 3be6302d29cb0ba109f664860f2be51b03aaf165 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期日, 23 四月 2023 14:22:38 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/entity/ctrl/DownloadTileEntity.java | 43 ++++++++++++++++++++++--------------------- 1 files changed, 22 insertions(+), 21 deletions(-) diff --git a/src/main/java/com/lf/server/entity/ctrl/DownloadTileEntity.java b/src/main/java/com/lf/server/entity/ctrl/DownloadTileEntity.java index ebf9ebe..1c37b12 100644 --- a/src/main/java/com/lf/server/entity/ctrl/DownloadTileEntity.java +++ b/src/main/java/com/lf/server/entity/ctrl/DownloadTileEntity.java @@ -8,7 +8,7 @@ * 涓嬭浇鐡︾墖瀹炰綋绫� * @author WWW */ -public class DownloadTileEntity implements Serializable { +public class DownloadTileEntity extends PwdEntity implements Serializable { private static final long serialVersionUID = -229710198271495902L; private Double xmin; @@ -19,11 +19,9 @@ private Double ymax; + private Integer pubid; + private String title; - - private String url; - - private String pwd; public DownloadTileEntity() { } @@ -40,6 +38,17 @@ } if (ymin < StaticData.I90_NEG || ymin > StaticData.I90 || ymax < StaticData.I90_NEG || ymax > StaticData.I90) { return "Y鍧愭爣鍊间笉姝g‘"; + } + + if (xmin > xmax) { + double x = xmax; + xmin = xmax; + xmax = x; + } + if (ymin > ymax) { + double y = ymax; + ymin = ymax; + ymax = y; } return null; @@ -77,27 +86,19 @@ this.ymax = ymax; } + public Integer getPubid() { + return pubid; + } + + public void setPubid(Integer pubid) { + this.pubid = pubid; + } + public String getTitle() { return title; } public void setTitle(String title) { this.title = title; - } - - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public String getPwd() { - return pwd; - } - - public void setPwd(String pwd) { - this.pwd = pwd; } } -- Gitblit v1.9.3