From 2dd2e7f54db7149965acaa11d933f85b31fbd59c Mon Sep 17 00:00:00 2001
From: huangzhen <867217663@qq.com>
Date: 星期二, 19 十二月 2023 16:54:00 +0800
Subject: [PATCH] 解决验收过程中出现的问题

---
 src/main/java/com/gkhy/fourierSpecialGasMonitor/entity/req/UploadGasFluxReqDTO.java |   66 +++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/gkhy/fourierSpecialGasMonitor/entity/req/UploadGasFluxReqDTO.java b/src/main/java/com/gkhy/fourierSpecialGasMonitor/entity/req/UploadGasFluxReqDTO.java
index 3e2499f..ad3afe8 100644
--- a/src/main/java/com/gkhy/fourierSpecialGasMonitor/entity/req/UploadGasFluxReqDTO.java
+++ b/src/main/java/com/gkhy/fourierSpecialGasMonitor/entity/req/UploadGasFluxReqDTO.java
@@ -1,8 +1,10 @@
 package com.gkhy.fourierSpecialGasMonitor.entity.req;
 
+import com.gkhy.fourierSpecialGasMonitor.enums.WarningThresholdEnum;
 import lombok.Data;
 
 import javax.persistence.*;
+import java.lang.reflect.Field;
 import java.time.LocalDateTime;
 
 
@@ -61,4 +63,68 @@
     private Double gasValue19;
     private int gasName20;
     private Double gasValue20;
+
+    public UploadGasFluxReqDTO expansionFactor(){
+        if (gasValue01 != null) {
+            gasValue01 = Math.round(gasValue01 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue02 != null) {
+            gasValue02 = Math.round(gasValue02 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue03 != null) {
+            gasValue03 = Math.round(gasValue03 * 3.6 * 100.0) / 100.0;
+        }
+        if (gasValue04 != null) {
+            gasValue04 = Math.round(gasValue04 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue05 != null) {
+            gasValue05 = Math.round(gasValue05 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue06 != null) {
+            gasValue06 = Math.round(gasValue06 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue07 != null) {
+            gasValue07 = Math.round(gasValue07 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue08 != null) {
+            gasValue08 = Math.round(gasValue08 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue09 != null) {
+            gasValue09 = Math.round(gasValue09 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue10 != null) {
+            gasValue10 = Math.round(gasValue10 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue11 != null) {
+            gasValue11 = Math.round(gasValue11 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue12 != null) {
+            gasValue12 = Math.round(gasValue12 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue13 != null) {
+            gasValue13 = Math.round(gasValue13 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue14 != null) {
+            gasValue14 = Math.round(gasValue14 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue15 != null) {
+            gasValue15 = Math.round(gasValue15 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue16 != null) {
+            gasValue16 = Math.round(gasValue16 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue17 != null) {
+            gasValue17 = Math.round(gasValue17 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue18 != null) {
+            gasValue18 = Math.round(gasValue18 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue19 != null) {
+            gasValue19 = Math.round(gasValue19 * 3600 * 100.0) / 100.0;
+        }
+        if (gasValue20 != null) {
+            gasValue20 = Math.round(gasValue20 * 3600 * 100.0) / 100.0;
+        }
+        return this;
+    }
 }

--
Gitblit v1.9.2