From db31f95644e77010ffb88ac9e57e618818737733 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 09 一月 2025 11:25:23 +0800 Subject: [PATCH] 优化”开阀操作次数“、”关阀操作次数“、”时间段内开阀次数超过指定值“、”时间段内开阀次数低于指定值“、”时间段有开阀无关阀“、”时间段无开阀有关阀“功能实现及sql。 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java index 6071100..3e7a3e3 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java @@ -14,6 +14,21 @@ protected HashMap<String, Class<CodeParse>> downCode2Class = new HashMap<>() ; protected HashMap<String, CodeParse> downCode2ClassInstance = new HashMap<>() ; + protected Notify notify ; + + /** + * 娓呯┖鑷繁 + */ + public abstract void clear() ; + + /** + * 璁剧疆RTU淇℃伅閫氱煡鍣� + * @param notify 閫氱煡 + */ + public void setNotify(Notify notify){ + this.notify = notify ; + } + /** * 鍗曠嚎绋嬪崟渚婦river妯″紡涓嬭繍琛� * 鎵弿璇嗗埆鍔熻兘鐮佹敞瑙g被 @@ -24,7 +39,6 @@ * 鎵弿璇嗗埆鍔熻兘鐮佹敞瑙g被 * @param driver 椹卞姩 * @param protocolName 鍗忚鍚嶇О - * @param uri URI * @param scanRootPackage 鎵弿鍖� * @throws Exception 寮傚父 */ -- Gitblit v1.8.0