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
1f436134
Commit
1f436134
authored
Jun 17, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存量工具方法优化
parent
27237ff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
BaiHangZhuDaiService.java
...antgroup/report/service/baihang/BaiHangZhuDaiService.java
+10
-6
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangZhuDaiService.java
View file @
1f436134
...
...
@@ -23,6 +23,7 @@ import cn.quantgroup.report.service.baihang.util.Base64;
import
cn.quantgroup.report.service.baihang.util.TuoMinUtils
;
import
cn.quantgroup.report.service.http.IHttpService
;
import
cn.quantgroup.report.utils.DateUtils
;
import
cn.quantgroup.report.utils.dingtalk.DingTalk
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
...
...
@@ -87,6 +88,9 @@ public class BaiHangZhuDaiService {
@Autowired
public
RepaymentLoanWhiteListMapper
repaymentLoanWhiteListMapper
;
@Autowired
private
DingTalk
dingTalk
;
@Autowired
public
IHttpService
iHttpService
;
...
...
@@ -359,6 +363,7 @@ public class BaiHangZhuDaiService {
}
}
catch
(
Exception
e
)
{
log
.
error
(
"量化派助贷TO百行报送-异常"
,
e
);
dingTalk
.
talk
(
"Error"
,
"量化派助贷TO百行报送-放款异常"
,
e
);
}
log
.
info
(
"量化派助贷TO百行报送-放款申请完成, 实际大小: {} , 报送成功大小: {} , 保存日志: {} , 耗时: {} "
,
loanInfos
.
size
(),
succ_atomicInteger
.
get
(),
save_atomicInteger
.
get
(),
(
sendWatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)
/
1000
)
+
".s"
);
...
...
@@ -499,6 +504,7 @@ public class BaiHangZhuDaiService {
}
catch
(
Exception
e
)
{
log
.
error
(
"量化派助贷TO百行报送-异常 J: {} , 开始时间: {} , 结束时间: {} "
,
j
,
startnyr
,
endnyr
,
e
);
dingTalk
.
talk
(
"Error"
,
"量化派助贷TO百行报送-"
+(
j
==
0
?
"还款"
:
"逾期"
)+
"信息异常"
,
e
);
}
}
...
...
@@ -1216,12 +1222,11 @@ public class BaiHangZhuDaiService {
log
.
info
(
"还款存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentInfoList
.
size
(),
starTime
,
(
realTimeStopWatch1
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)
/
1000
)
+
".s"
);
//联合贷产品上线时间,上线后才有数据
//2020.06.02 ---------------只修复非联合贷有问题-----------------------
/*if(erlyDate.plusDays(counter-1).compareTo(liang_he_dai_start) >= 0){
if
(
erlyDate
.
plusDays
(
counter
-
1
).
compareTo
(
liang_he_dai_start
)
>=
0
){
Stopwatch
realTimeStopWatch2
=
Stopwatch
.
createStarted
();
repaymentLoanInfosLh
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentInfoLh
(
timeRecord
);
log
.
info
(
"还款存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentLoanInfosLh
.
size
(),
starTime
,
(
realTimeStopWatch2
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
}
*/
}
}
else
{
if
(
StringUtils
.
isNotEmpty
(
d3Type
)
&&
d3Type
.
equals
(
"0"
))
{
//只要还款
...
...
@@ -1233,12 +1238,11 @@ public class BaiHangZhuDaiService {
log
.
info
(
"逾期存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentInfoList
.
size
(),
starTime
,
(
realTimeOverdueStopWatch3
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)
/
1000
)
+
".s"
);
//联合贷产品上线时间,上线后才有数据
//2020.06.02 ---------------只修复非联合贷有问题-----------------------
/*if(erlyDate.plusDays(counter-1).compareTo(liang_he_dai_start) >= 0){
if
(
erlyDate
.
plusDays
(
counter
-
1
).
compareTo
(
liang_he_dai_start
)
>=
0
){
Stopwatch
realTimeOverdueStopWatch4
=
Stopwatch
.
createStarted
();
repaymentLoanInfosLh
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentOverdueLh
(
timeRecord
);
log
.
info
(
"逾期存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentLoanInfosLh
.
size
(),
starTime
,
(
realTimeOverdueStopWatch4
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
}
*/
}
}
if
(
repaymentInfoList
==
null
)
{
...
...
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