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

时间相等

parent d93b36f7
...@@ -93,10 +93,11 @@ public class BaiHangFileReportService { ...@@ -93,10 +93,11 @@ public class BaiHangFileReportService {
} }
private void createReportFile(String type, Date startDate, Date endDate) { private void createReportFile(String type, Date startDate, Date endDate) {
Stopwatch stopwatch = Stopwatch.createStarted();
String starTime = DateUtils.formatDate(startDate,"yyyy-MM-dd HH:mm:ss"); String starTime = DateUtils.formatDate(startDate,"yyyy-MM-dd HH:mm:ss");
String endTime = DateUtils.formatDate(endDate,"yyyy-MM-dd HH:mm:ss"); String endTime = DateUtils.formatDate(endDate,"yyyy-MM-dd HH:mm:ss");
if (!starTime.equals(endTime)) {
log.info("开始生成报送文件{}----- {} -- {}",type,starTime,endTime); log.info("开始生成报送文件{}----- {} -- {}",type,starTime,endTime);
Stopwatch stopwatch = Stopwatch.createStarted();
if ("A1".equalsIgnoreCase(type)) { if ("A1".equalsIgnoreCase(type)) {
reportA1(starTime,endTime); reportA1(starTime,endTime);
} else if ("D2".equalsIgnoreCase(type)) { } else if ("D2".equalsIgnoreCase(type)) {
...@@ -112,6 +113,7 @@ public class BaiHangFileReportService { ...@@ -112,6 +113,7 @@ public class BaiHangFileReportService {
} }
log.info("生成报送文件结束{}----- {} -- {},耗时 {}",type,starTime,endTime,stopwatch.elapsed(TimeUnit.MILLISECONDS)); log.info("生成报送文件结束{}----- {} -- {},耗时 {}",type,starTime,endTime,stopwatch.elapsed(TimeUnit.MILLISECONDS));
} }
}
/** /**
* 贷款申请信息(A1) * 贷款申请信息(A1)
......
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