Commit 4d369e1a authored by 陈宏杰's avatar 陈宏杰

文件内容空判断

parent 0cde27ab
......@@ -223,7 +223,11 @@ public class BaiHangFileReportService {
}
File file = new File("量子数科科技有限公司_D2_"+fileNameReplaceAll(starTime.split("T")[0])+"_"+fileNameReplaceAll(endTime.split("T")[0])+"_0002"+".txt");
FileUtils.writeLines(file,reportList);
if (CollectionUtils.isEmpty(reportList)) {
log.info("量化派助贷TO百行报送(D2)-放款信息为空,加密文件不生成!starTime={},endTime={}",starTime,endTime);
} else {
createFile(file.getAbsolutePath());
}
log.info("量化派助贷TO百行报送-放款申请完成, 实际大小: {} , 报送成功大小: {} , 耗时: {} ", loanInfozdList.size(), atomicInteger.get(), sendWatch.stop().elapsed(TimeUnit.MILLISECONDS));
} catch (Exception e) {
log.error("量化派助贷TO百行报送-异常", e);
......@@ -284,7 +288,11 @@ public class BaiHangFileReportService {
}
File file = new File("量子数科科技有限公司_D3_"+fileNameReplaceAll(startTime.split("T")[0])+"_"+fileNameReplaceAll(endTime.split("T")[0])+"_"+"0003"+".txt");
FileUtils.writeLines(file,reportList);
if (CollectionUtils.isEmpty(reportList)) {
log.info("量化派助贷TO百行报送(D3)-还款信息为空,加密文件不生成!starTime={},endTime={}",startTime,endTime);
} else {
createFile(file.getAbsolutePath());
}
log.info("量化派助贷TO百行报送-还款申请完成 J: {} , 开始时间: {} , 结束时间: {} , 实际大小: {} , 报送成功大小: {} , 耗时: {} ", j, startTime, endTime, repaymentLoanInfos.size(), atomicInteger.get(), sendWatch.stop().elapsed(TimeUnit.MILLISECONDS));
} catch (Exception e) {
log.error("量化派助贷TO百行报送-异常 J: {} , 开始时间: {} , 结束时间: {} ", j, startTime, endTime, e);
......
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