Commit 969ed8ea authored by 陈宏杰's avatar 陈宏杰

集合数据<=1

parent 4d369e1a
...@@ -155,7 +155,7 @@ public class BaiHangFileReportService { ...@@ -155,7 +155,7 @@ public class BaiHangFileReportService {
} }
File file = new File("量子数科科技有限公司_A1_"+fileNameReplaceAll(starTime.split("T")[0])+"_"+fileNameReplaceAll(endTime.split("T")[0])+"_0001"+".txt"); File file = new File("量子数科科技有限公司_A1_"+fileNameReplaceAll(starTime.split("T")[0])+"_"+fileNameReplaceAll(endTime.split("T")[0])+"_0001"+".txt");
FileUtils.writeLines(file,reportList); FileUtils.writeLines(file,reportList);
if (CollectionUtils.isEmpty(reportList)) { if (reportList.size()<=1) {
log.info("量化派助贷TO百行报送(A1)-贷款申请信息为空,加密文件不生成!starTime={},endTime={}",starTime,endTime); log.info("量化派助贷TO百行报送(A1)-贷款申请信息为空,加密文件不生成!starTime={},endTime={}",starTime,endTime);
} else { } else {
createFile(file.getAbsolutePath()); createFile(file.getAbsolutePath());
...@@ -223,7 +223,7 @@ public class BaiHangFileReportService { ...@@ -223,7 +223,7 @@ public class BaiHangFileReportService {
} }
File file = new File("量子数科科技有限公司_D2_"+fileNameReplaceAll(starTime.split("T")[0])+"_"+fileNameReplaceAll(endTime.split("T")[0])+"_0002"+".txt"); File file = new File("量子数科科技有限公司_D2_"+fileNameReplaceAll(starTime.split("T")[0])+"_"+fileNameReplaceAll(endTime.split("T")[0])+"_0002"+".txt");
FileUtils.writeLines(file,reportList); FileUtils.writeLines(file,reportList);
if (CollectionUtils.isEmpty(reportList)) { if (reportList.size()<=1) {
log.info("量化派助贷TO百行报送(D2)-放款信息为空,加密文件不生成!starTime={},endTime={}",starTime,endTime); log.info("量化派助贷TO百行报送(D2)-放款信息为空,加密文件不生成!starTime={},endTime={}",starTime,endTime);
} else { } else {
createFile(file.getAbsolutePath()); createFile(file.getAbsolutePath());
...@@ -288,7 +288,7 @@ public class BaiHangFileReportService { ...@@ -288,7 +288,7 @@ public class BaiHangFileReportService {
} }
File file = new File("量子数科科技有限公司_D3_"+fileNameReplaceAll(startTime.split("T")[0])+"_"+fileNameReplaceAll(endTime.split("T")[0])+"_"+"0003"+".txt"); File file = new File("量子数科科技有限公司_D3_"+fileNameReplaceAll(startTime.split("T")[0])+"_"+fileNameReplaceAll(endTime.split("T")[0])+"_"+"0003"+".txt");
FileUtils.writeLines(file,reportList); FileUtils.writeLines(file,reportList);
if (CollectionUtils.isEmpty(reportList)) { if (reportList.size()<=1) {
log.info("量化派助贷TO百行报送(D3)-还款信息为空,加密文件不生成!starTime={},endTime={}",startTime,endTime); log.info("量化派助贷TO百行报送(D3)-还款信息为空,加密文件不生成!starTime={},endTime={}",startTime,endTime);
} else { } else {
createFile(file.getAbsolutePath()); createFile(file.getAbsolutePath());
......
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