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

时间相等

parent d93b36f7
...@@ -93,24 +93,26 @@ public class BaiHangFileReportService { ...@@ -93,24 +93,26 @@ 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");
log.info("开始生成报送文件{}----- {} -- {}",type,starTime,endTime); if (!starTime.equals(endTime)) {
if ("A1".equalsIgnoreCase(type)) { log.info("开始生成报送文件{}----- {} -- {}",type,starTime,endTime);
reportA1(starTime,endTime); Stopwatch stopwatch = Stopwatch.createStarted();
} else if ("D2".equalsIgnoreCase(type)) { if ("A1".equalsIgnoreCase(type)) {
reportD2(starTime,endTime); reportA1(starTime,endTime);
} else if ("D3".equalsIgnoreCase(type)) { } else if ("D2".equalsIgnoreCase(type)) {
reportD3(starTime,endTime); reportD2(starTime,endTime);
} else if ("D3O".equalsIgnoreCase(type)) { } else if ("D3".equalsIgnoreCase(type)) {
reportD3O(starTime,endTime); reportD3(starTime,endTime);
} else if ("D3R".equalsIgnoreCase(type)) { } else if ("D3O".equalsIgnoreCase(type)) {
reportD3R(starTime,endTime); reportD3O(starTime,endTime);
} else { } else if ("D3R".equalsIgnoreCase(type)) {
throw new QGException(COMMON_ILLEGAL_PARAM_TOAST,"报送类型不正确"); reportD3R(starTime,endTime);
} else {
throw new QGException(COMMON_ILLEGAL_PARAM_TOAST,"报送类型不正确");
}
log.info("生成报送文件结束{}----- {} -- {},耗时 {}",type,starTime,endTime,stopwatch.elapsed(TimeUnit.MILLISECONDS));
} }
log.info("生成报送文件结束{}----- {} -- {},耗时 {}",type,starTime,endTime,stopwatch.elapsed(TimeUnit.MILLISECONDS));
} }
/** /**
......
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