From 7a988c17fe25f18815889ff5221a5ebcf01fabdc Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期一, 13 十月 2025 18:15:59 +0800
Subject: [PATCH] 武汉黄陂军粮-质检报告共享接口同步及推送3
---
src/main/java/com/fzzy/async/fzzy40/impl/Fzzy40Sync1304.java | 27 +++++++++++++++++++++------
1 files changed, 21 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 9df34fd..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,10 +71,10 @@
}
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());
+ api1304.setZylx("5");
api1304 = updateGasInfo(api1304, fz40Gas.getPoints());
@@ -109,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