From 3a56308b1a8f3f453a56da52af64ad4ba669aec1 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期三, 13 十二月 2023 15:41:38 +0800 Subject: [PATCH] 提交邦海智能粮情协议解析--1 --- src/main/java/com/fzzy/protocol/fzzy/analysis/AnalysisGrain.java | 8 ++++---- 1 files changed, 4 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 017002e..0c70f31 100644 --- a/src/main/java/com/fzzy/protocol/fzzy/analysis/AnalysisGrain.java +++ b/src/main/java/com/fzzy/protocol/fzzy/analysis/AnalysisGrain.java @@ -68,7 +68,7 @@ //绮儏瑙f瀽 - log.info("鎺у埗鏌�--->骞冲彴锛屾帹鍔ㄧ殑绮儏淇℃伅--{}", response); + log.info("鎺у埗鏌�--->骞冲彴锛屾帶鍒舵煖杩斿洖绮儏妫�娴嬬粨鏋�--{}", response); //绮儏灏佽鍜屽鐞� if (StringUtils.isEmpty(response.getLayerPerCircle())) { @@ -91,10 +91,9 @@ //淇℃伅璋冩暣灏佽 private void buildBizInfo1(Response2102 response) { - String depotId = response.getHouseId(); //鑾峰彇璇锋眰淇℃伅 - BaseReqData reqData = ServerUtils.getSyncReq(depotId); + BaseReqData reqData = ServerUtils.getSyncReq(response.getHouseId()); if (null == reqData) { log.error("--绮儏灏佽瑙f瀽锛屾湭鑾峰彇鍒拌姹傜浉鍏冲弬鏁�----"); @@ -132,7 +131,7 @@ //鏍瑰彿 int cableNum = 1, position = 0; - double curTemp = response.getTMin(); + double curTemp; String[] attr = response.getPoints().split(","); int x = 0, y = 0, z = 0; for (int i = 0; i < attr.length; i++) { @@ -203,6 +202,7 @@ GatewayDeviceReportService reportService = gatewayRemoteManager.getDeviceReportService(reqData.getDevice().getPushProtocol()); if (null == reportService) { log.error("------------绮儏鎺ㄩ�佸け璐ワ紝绯荤粺涓嶅瓨鍦ㄥ綋鍓嶅崗璁墽琛岀被----{}", reqData.getDevice().getDeviceName()); + return; } reportService.reportGrainData(reqData); } -- Gitblit v1.9.3