Commit ca643a87 authored by 陈宏杰's avatar 陈宏杰

日志

parent 2832dc62
...@@ -818,6 +818,7 @@ public class BaiHangFileReportService { ...@@ -818,6 +818,7 @@ public class BaiHangFileReportService {
if (StringUtils.isBlank(collectFileName)) { if (StringUtils.isBlank(collectFileName)) {
return; return;
} }
log.info("文件开始上传到百行ftp服务器...");
File collectFile = new File(HOST_PATH + collectFileName); File collectFile = new File(HOST_PATH + collectFileName);
File subFile = null; File subFile = null;
if (collectFile.exists()) { if (collectFile.exists()) {
...@@ -830,9 +831,13 @@ public class BaiHangFileReportService { ...@@ -830,9 +831,13 @@ public class BaiHangFileReportService {
log.info("开始上传文件 {} 到百行ftp服务器...",fileName); log.info("开始上传文件 {} 到百行ftp服务器...",fileName);
SftpUtil.uploadFile(sftp,baiHangFtpDataDirectory,HOST_PATH + fileName); SftpUtil.uploadFile(sftp,baiHangFtpDataDirectory,HOST_PATH + fileName);
log.info("文件 {} 已上传到百行ftp服务器",fileName); log.info("文件 {} 已上传到百行ftp服务器",fileName);
} else {
log.error("文件 {} 不存在...",fileName);
} }
} }
} }
} else {
log.error("文件 {} 不存在...",collectFileName);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment