|
@@ -63,9 +63,11 @@ public class SalaryDownloadFilePlugin extends AbstractFormPlugin {
|
|
SftpClient sftpClient=new SftpClient(serverurl,user,password,port);
|
|
SftpClient sftpClient=new SftpClient(serverurl,user,password,port);
|
|
//获取服务器链接
|
|
//获取服务器链接
|
|
sftpClient.connect();
|
|
sftpClient.connect();
|
|
- sftpClient.downloadFile(filepath,fileLocalpath+"\\"+displayName+filename);
|
|
|
|
|
|
+ sftpClient.downloadFile(filepath,fileLocalpath+"/"+nckd_entrytype+".xls");
|
|
|
|
+ new File(fileLocalpath+"/"+nckd_entrytype+".xls")
|
|
|
|
+ .renameTo(new File(fileLocalpath+"/"+displayName+filename));
|
|
sftpClient.disconnect();
|
|
sftpClient.disconnect();
|
|
- this.getView().showMessage("文件下载成功,文件位置:"+fileLocalpath+"\\"+displayName+filename);
|
|
|
|
|
|
+ this.getView().showMessage("文件下载成功,文件位置:"+fileLocalpath+"/"+displayName+filename);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|