From 6277d8d6623a1ab8c38a255b57d62bc62ef8a408 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期六, 29 六月 2024 14:28:42 +0800
Subject: [PATCH] 广东省平台v5.1-相关接口字段调整

---
 src/main/java/com/fzzy/async/fzzy40/impl/Fzzy40Sync1304.java |   26 ++++++++++++++++++++------
 1 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/fzzy/async/fzzy40/impl/Fzzy40Sync1304.java b/src/main/java/com/fzzy/async/fzzy40/impl/Fzzy40Sync1304.java
index c52527c..f7272fb 100644
--- a/src/main/java/com/fzzy/async/fzzy40/impl/Fzzy40Sync1304.java
+++ b/src/main/java/com/fzzy/async/fzzy40/impl/Fzzy40Sync1304.java
@@ -60,7 +60,6 @@
                 return;
             }
 
-            Date syncTime = new Date();
             Api1304 api1304;
             Api1105 api1105;
             List<Api1304> api1304List;
@@ -72,7 +71,6 @@
                 }
 
                 api1304 = new Api1304();
-                // api1304.setQtndjcdh(api1105.getHwdm() + DateFormatUtils.format(gas.getReceiveDate(), "yyyyMMdd") + String.valueOf(index).substring(1));
                 api1304.setQtndjcdh(api1105.getHwdm() + fz40Gas.getBatchId());
                 api1304.setJcsj(fz40Gas.getReceiveDate());
                 api1304.setHwdm(api1105.getHwdm());
@@ -110,17 +108,33 @@
         String[] attr = points.split(";");
 
         String[] arrt2;
-        String o2 = "", co2 = "", ph3 = "";
+        String o2 = "", co2 = "", ph3 = "", n2 = "";
         for (String temp : attr) {
             arrt2 = temp.split(",");
-            o2 += arrt2[2] + ",";
-            co2 += arrt2[1] + ",";
-            ph3 += arrt2[3] + ",";
+            o2 +=  "," + arrt2[2];
+            co2 += "," + arrt2[1];
+            ph3 += "," + arrt2[3];
+            n2 += "," + arrt2[4];
         }
 
+        if(o2.length() > 0){
+            o2 = o2.substring(1);
+        }
+        if(co2.length() > 0){
+            co2 = co2.substring(1);
+        }
+        if(ph3.length() > 0){
+            ph3 = ph3.substring(1);
+        }
+        if(n2.length() > 0){
+            n2 = n2.substring(1);
+        }
+        co2 += "|ppm";
+        ph3 += "|ppm";
         api1304.setYqhlzjh(o2);
         api1304.setEyhthlzjh(co2);
         api1304.setLhqndzjh(ph3);
+        api1304.setDqndzjh(n2);
         return api1304;
     }
 

--
Gitblit v1.9.3