From 6495040bbda5308c86e852ad1b080097bfa916a9 Mon Sep 17 00:00:00 2001
From: vince <757871790@qq.com>
Date: 星期三, 09 七月 2025 09:22:17 +0800
Subject: [PATCH] 优化粮温检测

---
 src/main/java/com/fzzy/protocol/fzzy/analysis/AnalysisGrain.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/fzzy/protocol/fzzy/analysis/AnalysisGrain.java b/src/main/java/com/fzzy/protocol/fzzy/analysis/AnalysisGrain.java
index 58582b3..dd5a3b2 100644
--- a/src/main/java/com/fzzy/protocol/fzzy/analysis/AnalysisGrain.java
+++ b/src/main/java/com/fzzy/protocol/fzzy/analysis/AnalysisGrain.java
@@ -95,12 +95,13 @@
 
         //鑾峰彇璇锋眰淇℃伅
         BaseReqData reqData = ProtocolUtils.getSyncReq(response.getHouseId());
-
+        log.info("--绮儏灏佽瑙f瀽锛岃幏鍙栧埌璇锋眰鍛戒护鍙傛暟----");
         if (null == reqData) {
             log.error("--绮儏灏佽瑙f瀽锛屾湭鑾峰彇鍒拌姹傜浉鍏冲弬鏁�----");
             return;
         }
-
+        ProtocolUtils.delSyncReq(response.getHouseId());
+        log.info(reqData.toString());
 
         int cableZ = Integer.valueOf(response.getLay());
         int cableY = Integer.valueOf(response.getRow());
@@ -143,7 +144,7 @@
             }
 
             //鏁版嵁浼樺寲
-            if (curTemp > 35) {
+            if (curTemp > 40) {
                 curTemp = response.getTAvg();
             }
 
@@ -184,7 +185,7 @@
             weatherStation.setId(device.getDeviceId());
         }
         weatherStation.setAirPressure(weather.getPressure());
-        weatherStation.setHumidity(weather.getHumidity());
+        weatherStation.setHumidity(weather.getHumidity().replaceAll("%",""));
         weatherStation.setPm(weather.getAir_pm25());
         weatherStation.setRadiation("0");
         weatherStation.setRainfallAmount(weather.getWea());

--
Gitblit v1.9.3