From 1566a26a891197873e626b1c5b1de7f6e51b7ca1 Mon Sep 17 00:00:00 2001 From: Caleb <1832912936@qq.com> Date: Fri, 14 Jul 2023 01:44:44 +0000 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E5=8F=AA=E8=83=BD=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E4=B8=80=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81=EF=BC=8C=20?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E6=88=91=E7=9A=84idea=E8=A2=AB=20=E5=8D=A1?= =?UTF-8?q?=E7=88=86=E4=BA=86=EF=BC=81=EF=BC=81=EF=BC=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Caleb <1832912936@qq.com> --- java/ASmellyLongCode | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/ASmellyLongCode b/java/ASmellyLongCode index fe22394..da5ba74 100644 --- a/java/ASmellyLongCode +++ b/java/ASmellyLongCode @@ -1,7 +1,7 @@ -// 省略业务逻辑代码 +// 省略业务逻辑代码. for (TConfigSensor tConfigSensor : configSensorList) { String fieldName = tConfigSensor.getField(); @@ -11,7 +11,7 @@ for (TConfigSensor tConfigSensor : configSensorList) { String val = AnalysisUtils.serialDataAnalysis(msg, modbusType, address, analyticalMethod); Integer result = Integer.parseInt(val) * (-1); - log.debug("报文解析后的数据: {} --- {}", tConfigSensor.getFieldDescribe(), result); + if (fieldName.equals(TransformerPartialDischargeGraphType.a0Val.getInfo())) { transformerPartialDischargeGraph.setA0Val(result.doubleValue()); -- Gitee