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
be7f1f44
Commit
be7f1f44
authored
Jul 31, 2021
by
陈宏杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间相等
parent
d93b36f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
BaiHangFileReportService.java
...roup/report/service/baihang/BaiHangFileReportService.java
+17
-15
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangFileReportService.java
View file @
be7f1f44
...
...
@@ -93,24 +93,26 @@ public class BaiHangFileReportService {
}
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
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
if
(
"D3O"
.
equalsIgnoreCase
(
type
))
{
reportD3O
(
starTime
,
endTime
);
}
else
if
(
"D3R"
.
equalsIgnoreCase
(
type
))
{
reportD3R
(
starTime
,
endTime
);
}
else
{
throw
new
QGException
(
COMMON_ILLEGAL_PARAM_TOAST
,
"报送类型不正确"
);
if
(!
starTime
.
equals
(
endTime
))
{
log
.
info
(
"开始生成报送文件{}----- {} -- {}"
,
type
,
starTime
,
endTime
);
Stopwatch
stopwatch
=
Stopwatch
.
createStarted
();
if
(
"A1"
.
equalsIgnoreCase
(
type
))
{
reportA1
(
starTime
,
endTime
);
}
else
if
(
"D2"
.
equalsIgnoreCase
(
type
))
{
reportD2
(
starTime
,
endTime
);
}
else
if
(
"D3"
.
equalsIgnoreCase
(
type
))
{
reportD3
(
starTime
,
endTime
);
}
else
if
(
"D3O"
.
equalsIgnoreCase
(
type
))
{
reportD3O
(
starTime
,
endTime
);
}
else
if
(
"D3R"
.
equalsIgnoreCase
(
type
))
{
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
));
}
/**
...
...
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