From 5b8a52d6cef6f6b1032cc576471b505e69304331 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 08 十一月 2024 15:47:38 +0800 Subject: [PATCH] 上传RTU升级文件接收端增加判断重名文件,重名文件不允许上传 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 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 7593dab..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,10 +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被 -- Gitblit v1.8.0