From 75347649fb44f0a6064be55f093dea884c895930 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期六, 17 五月 2025 09:57:36 +0800 Subject: [PATCH] 先上行关闭报,后上行开阀报,此种情况,历史数据赋值补充几个遗失的属性值 --- pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/rtuMw/Web2RtuMw.java | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 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..118b150 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,24 @@ } /** + * 鍒涘缓澶栭儴鍛戒护锛堝彂缁欐帶鍒跺櫒锛� + * @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 comId 鍛戒护ID * @param code 鍛戒护code * @return */ @@ -210,6 +228,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