Commit 1e1aee3b authored by 郑建's avatar 郑建

增加文件报送生成文件接口

parent 49f140b8
......@@ -59,6 +59,9 @@ public class BaiHangFileReportService {
private static final String HOST_PATH = "/home/quantgroup/reportFile/";
// private static final String HOST_PATH = "C:\\Users\\musterHunter\\Desktop\\TEST_REPORT\\";
/**
* 创建报送文件 通常用于存量报送
* @param type 报送类型 A1:申请信息 D2:放款信息 D3:还款信息
......@@ -91,15 +94,15 @@ public class BaiHangFileReportService {
String starTime = DateUtils.formatDate(startDate,"yyyy-MM-dd hh:mm:ss");
String endTime = DateUtils.formatDate(endDate,"yyyy-MM-dd hh:mm:ss");
log.info("开始生成报送文件{}----- {} -- {}",type,starTime,endTime);
// if ("A1".equalsIgnoreCase(type)) {
// reportA1(starTime,endTime);
// } else if ("D2".equalsIgnoreCase(type)) {
// reportD2(starTime,endTime);
// } else if ("D3".equalsIgnoreCase(type)) {
// reportD3(starTime,endTime);
// } else {
// throw new QGException(COMMON_ILLEGAL_PARAM_TOAST,"报送类型不正确");
// }
if ("A1".equalsIgnoreCase(type)) {
reportA1(starTime,endTime);
} else if ("D2".equalsIgnoreCase(type)) {
reportD2(starTime,endTime);
} else if ("D3".equalsIgnoreCase(type)) {
reportD3(starTime,endTime);
} else {
throw new QGException(COMMON_ILLEGAL_PARAM_TOAST,"报送类型不正确");
}
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