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
121843d1
Commit
121843d1
authored
Dec 07, 2021
by
陈宏杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日期初始化
parent
7a32ea47
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
BaiHangFileReportService.java
...roup/report/service/baihang/BaiHangFileReportService.java
+3
-3
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangFileReportService.java
View file @
121843d1
...
...
@@ -118,7 +118,7 @@ public class BaiHangFileReportService {
return
;
}
redisTemplate
.
expire
(
Constant
.
QG_ZHU_DAI_CREATE_REPORT_FILE_LOCK_KEY
,
15
,
TimeUnit
.
MINUTES
);
if
(
StringUtils
.
isAnyBlank
(
type
,
start
,
end
,
loanStartDateStr
,
loanEndDateStr
))
{
if
(
StringUtils
.
isAnyBlank
(
type
,
start
,
end
))
{
throw
new
QGException
(
COMMON_ILLEGAL_PARAM_TOAST
,
"存在为空参数"
);
}
String
encryptFileName
=
null
;
...
...
@@ -129,8 +129,8 @@ public class BaiHangFileReportService {
Date
stepEndDate
=
org
.
apache
.
commons
.
lang3
.
time
.
DateUtils
.
addDays
(
stepStartDate
,
daySplitCount
);
// D3 还款记录 防止漏期
Date
endDate
=
"D3R"
.
equalsIgnoreCase
(
type
)
?
org
.
apache
.
commons
.
lang3
.
time
.
DateUtils
.
addDays
(
new
Date
(),
1
)
:
DateUtils
.
parseDate
(
dateFormat
,
end
);
Date
loanStartDate
=
DateUtils
.
parseDate
(
dateFormat
,
loanStartDateStr
);
Date
loanEndDate
=
DateUtils
.
parseDate
(
dateFormat
,
loanEndDateStr
);
Date
loanStartDate
=
StringUtils
.
isBlank
(
loanStartDateStr
)
?
new
Date
()
:
DateUtils
.
parseDate
(
dateFormat
,
loanStartDateStr
);
Date
loanEndDate
=
StringUtils
.
isBlank
(
loanEndDateStr
)
?
new
Date
()
:
DateUtils
.
parseDate
(
dateFormat
,
loanEndDateStr
);
Stopwatch
stopwatch
=
Stopwatch
.
createStarted
();
while
(
stepEndDate
.
getTime
()
<=
endDate
.
getTime
()){
encryptFileName
=
createReportFile
(
type
,
stepStartDate
,
stepEndDate
,
loanStartDate
,
loanEndDate
,
prefix
);
...
...
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