From 3417cf014a65765e02696c1d121ce58b2b4a8aed Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 08 四月 2025 15:55:36 +0800
Subject: [PATCH] 修改pom.xml

---
 src/main/java/com/se/simu/domain/dto/ExtensionDto.java |   38 ++++++++++++++++++++------------------
 1 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/src/main/java/com/se/simu/domain/dto/ExtensionDto.java b/src/main/java/com/se/simu/domain/dto/ExtensionDto.java
index e1bd6a0..b5079c8 100644
--- a/src/main/java/com/se/simu/domain/dto/ExtensionDto.java
+++ b/src/main/java/com/se/simu/domain/dto/ExtensionDto.java
@@ -1,11 +1,8 @@
 package com.se.simu.domain.dto;
 
-/**
- * 鑼冨洿瀹炰綋绫�
- *
- * @author WWW
- * @date   2024-09-30
- */
+import com.alibaba.fastjson.annotation.JSONField;
+
+@SuppressWarnings("ALL")
 public class ExtensionDto {
     private double minx;
 
@@ -19,7 +16,11 @@
 
     private double maxHeight;
 
-    public ExtensionDto(){}
+    @JSONField(serialize = false)
+    private Double differ;
+
+    public ExtensionDto() {
+    }
 
     public ExtensionDto(double minx, double miny, double maxx, double maxy) {
         this.minx = minx;
@@ -35,17 +36,6 @@
         this.maxy = maxy;
         this.minHeight = minHeight;
         this.maxHeight = maxHeight;
-    }
-
-    public void setHeight(double minHeight, double maxHeight) {
-        synchronized (this) {
-            if (this.minHeight > minHeight) {
-                this.minHeight = minHeight;
-            }
-            if (this.maxHeight < maxHeight) {
-                this.maxHeight = maxHeight;
-            }
-        }
     }
 
     public double getMinx() {
@@ -95,4 +85,16 @@
     public void setMaxHeight(double maxHeight) {
         this.maxHeight = maxHeight;
     }
+
+    public Double getDiffer() {
+        return differ;
+    }
+
+    public void setDiffer(Double differ) {
+        this.differ = differ;
+    }
+
+    public void setDiffer() {
+        this.differ = this.maxHeight - this.minHeight;
+    }
 }

--
Gitblit v1.9.3