From 3efb76f21f8f2eff3705a6bf681ed6ff52b16d70 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 18 十一月 2024 15:32:16 +0800
Subject: [PATCH] Maven编译打包时会产生一些警告信息,进行一个类的注解,消除这些警告信息

---
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/global/GlCreate.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/global/GlCreate.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/global/GlCreate.java
index b9a916e..c4a784d 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/global/GlCreate.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/global/GlCreate.java
@@ -52,6 +52,17 @@
         bsNoTail[ProtocolConstantV206V1.dataLenIndex] = (byte)len ;
     }
 
+    public static void createLen4PUg(byte[] bytes) throws Exception {
+        int len = bytes.length - 4;
+        byte[] bs = ByteUtil.int2BCD_LE(len) ;
+        if(bs != null && bs.length == 1){
+            bytes[1] = bs[0] ;
+        }else if(bs != null && bs.length > 1){
+            bytes[1] = bs[0] ;
+            bytes[2] = bs[1] ;
+        }
+    }
+
 
     /**
      * 鐢熸垚IC鍗$紪鐮�

--
Gitblit v1.8.0