|  |  | 
 |  |  |         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 ; | 
 |  |  | 
 |  |  |         } | 
 |  |  |         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; |