From cb7ca191bf7dfe5db4dc30f1576f8c5362761154 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 16 五月 2024 18:38:02 +0800
Subject: [PATCH] 修改bug,协议中报警及状态是4个字节,程序实现中当2个字节

---
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_5C_Up.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_5C_Up.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_5C_Up.java
index 359696b..ddbb100 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_5C_Up.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_5C_Up.java
@@ -99,15 +99,15 @@
             String yy = ByteUtil.BCD2String_BE(bs, index, index) ;
             cdData.dt = "20" + yy + "-" + MM + "-" + dd + " " + HH  ;
 
-            int meterAmountDay = ByteUtil.BCD2Int_BE(bs, index, index + 3) ;
+            Long meterAmountDay = ByteUtil.BCD2Long_LE(bs, index, index + 3) ;
             cdData.meterAmountDay = meterAmountDay/100.0D;
 
             index += 4 ;
-            int farmerAmountDay = ByteUtil.BCD2Int_BE(bs, index, index + 3) ;
+            Long farmerAmountDay = ByteUtil.BCD2Long_LE(bs, index, index + 3) ;
             cdData.farmerAmountDay = farmerAmountDay/100.0D;
 
             index += 4 ;
-            int lossAmountDay = ByteUtil.BCD2Int_BE(bs, index, index + 3) ;
+            Long lossAmountDay = ByteUtil.BCD2Long_LE(bs, index, index + 3) ;
             cdData.lossAmountDay = lossAmountDay/100.0D;
 
             return cdData ;

--
Gitblit v1.8.0