zhubaomin
2024-11-13 1ba46471b7831f057991ad92573463488504b20e
pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/rtuUpgrade/program/UgRtuProgramCtrl.java
@@ -151,6 +151,10 @@
        if(vo.file == null){
            return BaseResponseUtils.buildFail("RTU程序文件必须上传") ;
        }
        String fileName = vo.file.getOriginalFilename() ;
        if(this.sv.existFileName(fileName)){
            return BaseResponseUtils.buildFail("RTU程序文件名已存在") ;
        }
        HexFileVo fileVo = null ;
        byte[] fileBytes = null ;
@@ -166,7 +170,7 @@
        }
        if(fileVo != null){
            UgRtuProgram po = new UgRtuProgram();
            po.hexFileName = vo.file.getOriginalFilename() ;
            po.hexFileName = fileName ;
            po.programCalculateBytes = (int)fileVo.calculateBytes ;
            po.programCrc16 = fileVo.bytesCrc16 ;
            po.programBytes = fileVo.bytes;