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/softUpgrade/parse/HexFileVo.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/parse/HexFileVo.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/parse/HexFileVo.java index ff9c96b..47e576b 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/parse/HexFileVo.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/softUpgrade/parse/HexFileVo.java @@ -19,6 +19,7 @@ public byte[] bytes ; public List<byte[]> listByte512 ; public long totalBytes512 ; + public Integer bytesCrc16 ; public List<String> errors ; public HexFileVo() { @@ -27,6 +28,7 @@ bytes = new byte[0] ; listByte512 = new ArrayList<>() ; totalBytes512 = 0 ; + bytesCrc16 = 0 ; errors = new ArrayList<>() ; } @@ -35,6 +37,7 @@ + "\ncalculateBytes:" + calculateBytes + "\nrealBytes:" + realBytes + "\ntotalBytes512:" + totalBytes512 + + "\nbytesCrc16:" + bytesCrc16 + "\nerrors:" + errors ; if(listByte512.size() > 0){ int counter = 0 ; -- Gitblit v1.8.0