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
b43a3a45
Commit
b43a3a45
authored
Jun 12, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手动修复数据工具
parent
6f7f6d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
BaiHangZhuDaiService.java
...antgroup/report/service/baihang/BaiHangZhuDaiService.java
+11
-12
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangZhuDaiService.java
View file @
b43a3a45
...
@@ -2976,11 +2976,9 @@ public class BaiHangZhuDaiService {
...
@@ -2976,11 +2976,9 @@ public class BaiHangZhuDaiService {
for
(
int
i
=
0
;
i
<
fsize
;
i
++){
for
(
int
i
=
0
;
i
<
fsize
;
i
++){
RepaymentInfoZhuDai
repaymentLoanInfo
=
logBeanList
.
get
(
i
);
RepaymentInfoZhuDai
repaymentLoanInfo
=
logBeanList
.
get
(
i
);
String
str_statusConfirmAt
=
repaymentLoanInfo
.
getStatusConfirmAt
();
LocalDateTime
loca_statusConfirmAt
=
LocalDateTime
.
parse
(
repaymentLoanInfo
.
getStatusConfirmAt
());
LocalDateTime
loca_statusConfirmAt
=
LocalDateTime
.
parse
(
str_statusConfirmAt
);
//String str_uploadTs = repaymentLoanInfo.getUploadTs();
LocalDateTime
loca_uploadTs
=
LocalDateTime
.
parse
(
repaymentLoanInfo
.
getUploadTs
());
//LocalDateTime loca_uploadTs = LocalDateTime.parse(str_uploadTs);
try
{
try
{
List
<
RepaymentInfoZhuDai
>
d3_log_maxList
=
riskDatasourceJdbcTemplate
.
query
(
sql_d3_max_time
,
new
Object
[]{
repaymentLoanInfo
.
getLoanId
()},
new
RowMapper
<
RepaymentInfoZhuDai
>()
{
List
<
RepaymentInfoZhuDai
>
d3_log_maxList
=
riskDatasourceJdbcTemplate
.
query
(
sql_d3_max_time
,
new
Object
[]{
repaymentLoanInfo
.
getLoanId
()},
new
RowMapper
<
RepaymentInfoZhuDai
>()
{
...
@@ -2998,19 +2996,20 @@ public class BaiHangZhuDaiService {
...
@@ -2998,19 +2996,20 @@ public class BaiHangZhuDaiService {
LocalDateTime
max_loca_statusConfirmAt
=
LocalDateTime
.
parse
(
max_str_statusConfirmAt
);
LocalDateTime
max_loca_statusConfirmAt
=
LocalDateTime
.
parse
(
max_str_statusConfirmAt
);
if
(
max_loca_statusConfirmAt
.
compareTo
(
loca_statusConfirmAt
)
>
0
)
{
if
(
max_loca_statusConfirmAt
.
compareTo
(
loca_statusConfirmAt
)
>
0
)
{
log
.
info
(
"ERR_M05_D3_024根据LoanId&3查询status_confirm_at结束, 原sca: {} , maxsca: {} , LoanId: {} , termNo: {} "
,
str_statusConfirmAt
,
max_str_statusConfirmAt
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
());
log
.
info
(
"ERR_M05_D3_024根据LoanId&3查询status_confirm_at结束, 原sca: {} , maxsca: {} , LoanId: {} , termNo: {} "
,
repaymentLoanInfo
.
getStatusConfirmAt
()
,
max_str_statusConfirmAt
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
());
repaymentLoanInfo
.
setStatusConfirmAt
(
max_str_statusConfirmAt
);
repaymentLoanInfo
.
setStatusConfirmAt
(
max_str_statusConfirmAt
);
repaymentLoanInfo
.
setUploadTs
(
max_str_statusConfirmAt
);
}
else
{
}
else
{
log
.
warn
(
"ERR_M05_D3_024根据LoanId&3查询status_confirm_at不是最大的,
LoanId: {} , termNo: {} "
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
());
log
.
warn
(
"ERR_M05_D3_024根据LoanId&3查询status_confirm_at不是最大的,
原sca: {} , maxsca: {} , LoanId: {} , termNo: {} "
,
repaymentLoanInfo
.
getStatusConfirmAt
(),
max_str_statusConfirmAt
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
());
}
}
/*
String max_str_uploadTs = d3_log_maxList.get(0).getUploadTs();
String
max_str_uploadTs
=
d3_log_maxList
.
get
(
0
).
getUploadTs
();
LocalDateTime
max_loca_uploadTs
=
LocalDateTime
.
parse
(
max_str_uploadTs
);
LocalDateTime
max_loca_uploadTs
=
LocalDateTime
.
parse
(
max_str_uploadTs
);
if (loca_uploadTs.compareTo(max_loca_uploadTs) > 0) {
if
(
max_loca_uploadTs
.
compareTo
(
loca_uploadTs
)
>
0
)
{
log.warn("ERR_M05_D3_024根据LoanId&3查询uploadTs结束, 原sca: {} , maxsca: {} , LoanId: {} , termNo: {} ", str_statusConfirmAt, max_str_statusConfirmAt, repaymentLoanInfo.getLoanId(), repaymentLoanInfo.getTermNo());
log
.
warn
(
"ERR_M05_D3_024根据LoanId&3查询uploadTs结束, 原ups: {} , maxups: {} , LoanId: {} , termNo: {} "
,
repaymentLoanInfo
.
getUploadTs
(),
max_str_uploadTs
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
());
repaymentLoanInfo.setStatusConfirmAt(max_str_statusConfirmAt);
repaymentLoanInfo
.
setUploadTs
(
max_str_uploadTs
);
}*/
}
else
{
log
.
warn
(
"ERR_M05_D3_024根据LoanId&3查询uploadTs不是最大的, 原ups: {} , maxups: {} , LoanId: {} , termNo: {} "
,
repaymentLoanInfo
.
getUploadTs
(),
max_str_uploadTs
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
());
}
}
else
{
}
else
{
log
.
warn
(
"ERR_M05_D3_024根据LoanId&3查询status_confirm_at为空或大小大于1, LoanId: {} , termNo: {} "
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
());
log
.
warn
(
"ERR_M05_D3_024根据LoanId&3查询status_confirm_at为空或大小大于1, LoanId: {} , termNo: {} "
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
());
...
...
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