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
a2e039f6
Commit
a2e039f6
authored
Jan 02, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检测tidb的call_record表数据是否有重复数据工具
parent
057bd538
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
BaiHangZhuDaiService.java
...antgroup/report/service/baihang/BaiHangZhuDaiService.java
+11
-2
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangZhuDaiService.java
View file @
a2e039f6
...
...
@@ -392,9 +392,18 @@ public class BaiHangZhuDaiService {
String
reqId_log
=
repaymentLoanInfo
.
getReqID
();
try
{
RepaymentInfoZhuDai
repaymentLoanInfo1
=
repaymentLoanInfoDbMapper
.
findLastOne
(
BaiHangRepayment
.
builder
().
loanId
(
repaymentLoanInfo
.
getLoanId
()).
termNo
(
repaymentLoanInfo
.
getTermNo
()).
build
());
if
(
j
>
0
&&
Objects
.
nonNull
(
repaymentLoanInfo1
))
{
if
(
j
>
0
&&
Objects
.
nonNull
(
repaymentLoanInfo1
))
{
//逾期的,跳过
tg_atomicInt
.
getAndIncrement
();
log
.
info
(
"量化派助贷TO百行报送-实时还款逾期跳过报送, reqId_log: {} , loanId: {} , termNo: {} , startnyr: {} , endnyr: {} , bean: {} , param: {} "
,
reqId_log
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
(),
startnyr
,
endnyr
,
JSON
.
toJSONString
(
repaymentLoanInfo1
),
JSON
.
toJSONString
(
repaymentLoanInfo
));
log
.
info
(
"量化派助贷TO百行报送-实时还款逾期跳过报送, reqId_log: {} , loanId: {} , termNo: {} , startnyr: {} , endnyr: {} , bean: {} "
,
reqId_log
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
(),
startnyr
,
endnyr
,
JSON
.
toJSONString
(
repaymentLoanInfo1
));
//----------2020.02.02 保存跳过的数据,用于以后补全
try
{
FileUtils
.
write
(
new
File
(
"/home/quant_group/baihang-report/data/baihang/D3/yuqi_tg/"
+
startnyr
+
"_"
+
endnyr
+
".json"
),
JSON
.
toJSONString
(
repaymentLoanInfo
)+
"\r\n"
,
"UTF-8"
,
true
);
}
catch
(
Exception
e
){
log
.
error
(
"量化派助贷TO百行报送-实时逾期跳过, Json数据保存文件异常,"
,
e
);
}
continue
;
}
totail_atomicInt
.
getAndIncrement
();
...
...
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