From 2b2a90e952c2c59642c41d8af5759ceb51b9e099 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 13 五月 2024 16:19:14 +0800
Subject: [PATCH] 根据王江海修改完善的协议(20240510),进行协议实现完善。

---
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/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/p206V202404/parse/global/GlCreate.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java
index 16f5543..f428bde 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java
@@ -93,6 +93,17 @@
         Integer icCardNo2Int = Integer.parseInt(icCardNo2) ;
         ByteUtilUnsigned.short2Bytes_LE(bs, icCardNo2Int.shortValue(), index);
     }
+
+    public static void createDt(byte[] bs, int index) throws Exception {
+        bs[index] = Byte.parseByte(DateTime.ss()) ;
+        bs[index + 1] = Byte.parseByte(DateTime.mm()) ;
+        bs[index + 2] = Byte.parseByte(DateTime.HH()) ;
+        bs[index + 3] = Byte.parseByte(DateTime.dd()) ;
+        bs[index + 4] = Byte.parseByte(DateTime.MM()) ;
+        bs[index + 5] = Byte.parseByte(DateTime.yy()) ;
+    }
+
+
     public static void createPw(byte[] bs, int index) throws Exception {
         bs[index] = 0;
         bs[index + 1] = 0;

--
Gitblit v1.8.0