Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baihang-report
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-spider
baihang-report
Commits
1e1aee3b
Commit
1e1aee3b
authored
Jun 04, 2021
by
郑建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加文件报送生成文件接口
parent
49f140b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
BaiHangFileReportService.java
...roup/report/service/baihang/BaiHangFileReportService.java
+12
-9
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangFileReportService.java
View file @
1e1aee3b
...
...
@@ -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
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment