From 836ec39fdad422b1a148699a4c5fb8c5b4d395f0 Mon Sep 17 00:00:00 2001
From: zuoxiao <lf_zuo@163.com>
Date: 星期三, 25 六月 2025 11:04:33 +0800
Subject: [PATCH] feat(card): 添加管理类型卡写卡功能并优化卡片相关逻辑- 在 OperateTypeENUM 中添加 SUPPLEMENT 和 MANAGEMENT_CARD_WRITE 枚举值 - 在 SeManagementCard 中添加 cancelTime 和 state 字段 - 更新相关 mapper 和 XML 文件以支持新增字段 - 修改 CardSv 中的回调处理逻辑,支持管理类型卡写卡 - 优化 CreateManagementCardDto 中识别码的示例值

---
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/rtuMw/Web2RtuMw.java |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/rtuMw/Web2RtuMw.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/rtuMw/Web2RtuMw.java
index 42d074e..23b2675 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/rtuMw/Web2RtuMw.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/rtuMw/Web2RtuMw.java
@@ -185,6 +185,7 @@
 
     /**
      * 鍒涘缓澶栭儴鍛戒护锛堝彂缁欐帶鍒跺櫒锛�
+     * @param comId 鍛戒护ID
      * @param code 鍛戒护code
      * @return
      */
@@ -197,7 +198,42 @@
     }
 
     /**
+     * 鍒涘缓澶栭儴鍛戒护锛堝彂缁欐帶鍒跺櫒锛�
+     * @param rtuAddr 鎺у埗鍣ㄥ湴鍧�
+     * @param comId 鍛戒护ID
+     * @param code 鍛戒护code
+     * @return
+     */
+    public Command createOuterCommand(String rtuAddr, String comId, String code) {
+        Command com = new Command();
+        com.id = comId;
+        com.rtuAddr = rtuAddr;
+        com.code = code ;
+        com.type = CommandType.outerCommand;
+        return com ;
+    }
+
+    /**
+     * 鍒涘缓澶栭儴鍛戒护锛堝彂缁欐帶鍒跺櫒锛�
+     * @param fboxId FBox璁惧搴忓垪鍙�
+     * @param comId 鍛戒护ID
+     * @param code 鍛戒护code
+     * @return
+     */
+    public Command createMQTTCommand(String fboxId, String comId, String protocol, Short protocolVer, String code) {
+        Command com = new Command();
+        com.id = comId;
+        com.rtuAddr = fboxId;
+        com.code = code ;
+        com.protocol = protocol ;
+        com.protocolVersion = protocolVer ;
+        com.type = CommandType.mqttCommand;
+        return com ;
+    }
+
+    /**
      * 鍒涘缓澶栭儴閫忎紶鍛戒护锛堝彂缁欐帶鍒跺櫒锛�
+     * @param comId 鍛戒护ID
      * @param code 鍛戒护code
      * @return
      */
@@ -210,6 +246,22 @@
     }
 
     /**
+     * 鍒涘缓澶栭儴閫忎紶鍛戒护锛堝彂缁欐帶鍒跺櫒锛�
+     * @param rtuAddr 鎺у埗鍣ㄥ湴鍧�
+     * @param comId 鍛戒护ID
+     * @param code 鍛戒护code
+     * @return
+     */
+    public Command createOuterTransparentCommand(String rtuAddr, String comId, String code) {
+        Command com = new Command();
+        com.id = comId;
+        com.rtuAddr = rtuAddr;
+        com.code = code ;
+        com.type = CommandType.outerTransCommand;
+        return com ;
+    }
+
+    /**
      * 鍒涘缓鍐呴儴鍛戒护
      * @param code 鍛戒护code
      * @return

--
Gitblit v1.8.0