|
|
@@ -116,8 +116,11 @@ public class UploadServiceImpl implements UploadService {
|
|
|
uploadSuccess = upload(client, config.get("ip").toString(), folder, file);
|
|
|
}
|
|
|
if (sftp!=null){
|
|
|
+ BaseUtil.logger.info(file);
|
|
|
+ BaseUtil.logger.info(file.getName());
|
|
|
InputStream is = new FileInputStream(file);
|
|
|
uploadSuccess = sftp.upload("/", folder, file.getName(), is);
|
|
|
+ BaseUtil.logger.info(uploadSuccess);
|
|
|
}
|
|
|
//如果文件上传成功,则转入正式数据记录表
|
|
|
if(uploadSuccess){
|