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

时间相等

parent c61282f4
...@@ -101,23 +101,25 @@ public class BaiHangFileReportService { ...@@ -101,23 +101,25 @@ public class BaiHangFileReportService {
Stopwatch stopwatch = Stopwatch.createStarted(); 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); if ("A1".equalsIgnoreCase(type)) {
} else if ("D2".equalsIgnoreCase(type)) { reportA1(starTime,endTime);
reportD2(starTime,endTime); } else if ("D2".equalsIgnoreCase(type)) {
} else if ("D3".equalsIgnoreCase(type)) { reportD2(starTime,endTime);
reportD3(starTime,endTime); } else if ("D3".equalsIgnoreCase(type)) {
} else if ("D3O".equalsIgnoreCase(type)) { reportD3(starTime,endTime);
reportD3O(starTime,endTime); } else if ("D3O".equalsIgnoreCase(type)) {
} else if ("D3R".equalsIgnoreCase(type)) { reportD3O(starTime,endTime);
reportD3R(starTime,endTime); } else if ("D3R".equalsIgnoreCase(type)) {
} else if ("D3O30".equalsIgnoreCase(type)) { reportD3R(starTime,endTime);
reportD3OFor30Day(starTime,endTime); } else if ("D3O30".equalsIgnoreCase(type)) {
} else { reportD3OFor30Day(starTime,endTime);
throw new QGException(COMMON_ILLEGAL_PARAM_TOAST,"报送类型不正确"); } 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