From 19bddd3beb27b359886384a41b97e02dae07f6c8 Mon Sep 17 00:00:00 2001
From: CZT <czt18638530771@163.com>
Date: 星期二, 29 八月 2023 21:11:38 +0800
Subject: [PATCH] 优化配置信息

---
 igds-protocol-modbus/src/main/java/com/ld/igds/protocol/modbus/command/AnalysisService.java |    8 ++++++++
 igds-web/src/main/resources/static/img/aerial-5328_001.png                                  |    0 
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/igds-protocol-modbus/src/main/java/com/ld/igds/protocol/modbus/command/AnalysisService.java b/igds-protocol-modbus/src/main/java/com/ld/igds/protocol/modbus/command/AnalysisService.java
index 30c815f..59b1fbf 100644
--- a/igds-protocol-modbus/src/main/java/com/ld/igds/protocol/modbus/command/AnalysisService.java
+++ b/igds-protocol-modbus/src/main/java/com/ld/igds/protocol/modbus/command/AnalysisService.java
@@ -83,6 +83,7 @@
         double co2, o2, ph3, n2;
         DecimalFormat df = new DecimalFormat("#0.00");
         double sumO2 = 0.0, sumCo2 = 0.0, sumPh3 = 0.0, sumN2 = 0.0;
+        int num = 1;
         StringBuffer sb = new StringBuffer();
         for (ModbusGasResult gasResult : results) {
             //浜屾哀鍖栫⒊锛屽崟浣嶏細PPM锛岀洿鎺ヤ娇鐢�
@@ -93,6 +94,13 @@
             ph3 = gasResult.getPh3().doubleValue();
             n2 = Double.valueOf(df.format(99.9 - o2));;
 
+            if(num == 1){
+                gas.setPerCo2Min(co2);
+                gas.setPerO2Min(o2);
+                gas.setPerPh3Min(ph3);
+                gas.setPerN2Min(n2);
+            }
+            num ++;
             if (gas.getPerCo2Max() < co2) {
                 gas.setPerCo2Max(co2);
             }
diff --git a/igds-web/src/main/resources/static/img/aerial-5328_001.png b/igds-web/src/main/resources/static/img/aerial-5328_001.png
new file mode 100644
index 0000000..6f396b5
--- /dev/null
+++ b/igds-web/src/main/resources/static/img/aerial-5328_001.png
Binary files differ

--
Gitblit v1.9.3