|
@@ -262,8 +262,6 @@ public class PushDataForBJZYYJY implements IPushInitForecastData {
|
|
|
recordService.save(record);
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
// 获取公司信息
|
|
|
IntegrationCompany integrationCompany = integrationCompanyService.findByCode(CompanyConstant.COMPANY_BJZYYJY);
|
|
|
String sftpInfo = integrationCompany.getPushUrl();
|
|
@@ -296,13 +294,7 @@ public class PushDataForBJZYYJY implements IPushInitForecastData {
|
|
|
log.info("sftpFilePath:" + sftpFilePath);
|
|
|
log.info("newFileName:" + newFile.getName());
|
|
|
// 多级目录创建并上传
|
|
|
- try {
|
|
|
- sftpUtil.uploadByFileAndPath(userName, passWord, sftpUrl, sftpPort, newFile, sftpFilePath, newFile.getName());
|
|
|
- } catch (SftpException e) {
|
|
|
- e.printStackTrace();
|
|
|
- } catch (FileNotFoundException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
+ sftpUtil.uploadByFileAndPath(userName, passWord, sftpUrl, sftpPort, newFile, sftpFilePath, newFile.getName());
|
|
|
// 保存日志
|
|
|
recordService.save(record);
|
|
|
return true;
|