From 0230f23fcdeecfe14da0ade61fb3afa2822740cf Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 11 九月 2023 16:10:02 +0800
Subject: [PATCH] 保留3位小数

---
 src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java b/src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java
index ee0a1fd..5087b4d 100644
--- a/src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java
+++ b/src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java
@@ -1,5 +1,7 @@
 package com.moon.server.entity.data;
 
+import com.moon.server.helper.WebHelper;
+
 import java.io.Serializable;
 
 /**
@@ -39,7 +41,7 @@
     }
 
     public void setMin(Double min) {
-        this.min = min;
+        this.min = WebHelper.round(min, 3);
     }
 
     public Double getAvg() {
@@ -47,7 +49,7 @@
     }
 
     public void setAvg(Double avg) {
-        this.avg = avg;
+        this.avg = WebHelper.round(avg, 3);
     }
 
     public Double getMax() {
@@ -55,7 +57,7 @@
     }
 
     public void setMax(Double max) {
-        this.max = max;
+        this.max = WebHelper.round(max, 3);
     }
 
     public int getCode() {

--
Gitblit v1.9.3