From 89a72db182bc4312caf4abfa60969c325cbb98bb Mon Sep 17 00:00:00 2001 From: huangzhen <867217663@qq.com> Date: 星期日, 04 二月 2024 10:29:05 +0800 Subject: [PATCH] bug修复 --- src/main/java/com/gkhy/fourierSpecialGasMonitor/entity/req/UploadGasFluxReqDTO.java | 127 +++++++++++++++++++++--------------------- 1 files changed, 63 insertions(+), 64 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 ad3afe8..7c5ff4e 100644 --- a/src/main/java/com/gkhy/fourierSpecialGasMonitor/entity/req/UploadGasFluxReqDTO.java +++ b/src/main/java/com/gkhy/fourierSpecialGasMonitor/entity/req/UploadGasFluxReqDTO.java @@ -63,68 +63,67 @@ 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; - } + //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