|
@@ -30,7 +30,6 @@ public class SalaryDownloadFilePlugin extends AbstractFormPlugin {
|
|
|
DynamicObject dynamicObject=this.getModel().getDataEntity(true);
|
|
|
String nckd_entrytype= dynamicObject.getString("nckd_entrytype");
|
|
|
if (downloadBut.equals(operateKey)) {
|
|
|
- //通用薪酬(一般员工)
|
|
|
downFileToLocal(nckd_entrytype);
|
|
|
}
|
|
|
}
|
|
@@ -64,9 +63,9 @@ public class SalaryDownloadFilePlugin extends AbstractFormPlugin {
|
|
|
SftpClient sftpClient=new SftpClient(serverurl,user,password,port);
|
|
|
//获取服务器链接
|
|
|
sftpClient.connect();
|
|
|
- sftpClient.downloadFile(filepath,fileLocalpath+File.separator+displayName+filename);
|
|
|
+ sftpClient.downloadFile(filepath,fileLocalpath+"\\"+displayName+filename);
|
|
|
sftpClient.disconnect();
|
|
|
- this.getView().showMessage("文件下载成功,文件位置:"+fileLocalpath+File.separator+displayName+filename);
|
|
|
+ this.getView().showMessage("文件下载成功,文件位置:"+fileLocalpath+"\\"+displayName+filename);
|
|
|
} catch (Exception e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|