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/WaterDto.java | 46 ++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 38 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/se/simu/domain/dto/WaterDto.java b/src/main/java/com/se/simu/domain/dto/WaterDto.java index 9a9cce9..4c5b66f 100644 --- a/src/main/java/com/se/simu/domain/dto/WaterDto.java +++ b/src/main/java/com/se/simu/domain/dto/WaterDto.java @@ -1,25 +1,39 @@ package com.se.simu.domain.dto; -import com.fasterxml.jackson.annotation.JsonIgnore; +import com.alibaba.fastjson.annotation.JSONField; import java.util.ArrayList; import java.util.List; -/** - * 姘撮潰瀹炰綋绫� - * - * @author WWW - * @date 2024-09-30 - */ +@SuppressWarnings("ALL") public class WaterDto { - @JsonIgnore + @JSONField(serialize = false) private List<String> files; + + @JSONField(serialize = false) + private Double minHeight; + + @JSONField(serialize = false) + private Double maxHeight; private List<Long> data; public WaterDto() { this.files = new ArrayList<>(); this.data = new ArrayList<>(); + this.minHeight = Double.MAX_VALUE; + this.maxHeight = Double.MIN_VALUE; + } + + public void setHeight(double minHeight, double maxHeight) { + synchronized (this) { + if (this.minHeight > minHeight) { + this.minHeight = minHeight; + } + if (this.maxHeight < maxHeight) { + this.maxHeight = maxHeight; + } + } } public List<String> getFiles() { @@ -37,4 +51,20 @@ public void setData(List<Long> data) { this.data = data; } + + public Double getMinHeight() { + return minHeight; + } + + public void setMinHeight(Double minHeight) { + this.minHeight = minHeight; + } + + public Double getMaxHeight() { + return maxHeight; + } + + public void setMaxHeight(Double maxHeight) { + this.maxHeight = maxHeight; + } } -- Gitblit v1.9.3