Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-bl-service
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-spider
qg-bl-service
Commits
6c5f1c27
Commit
6c5f1c27
authored
Apr 23, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
黑灰名单2020.04.23_02
parent
cd983bf5
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
33 deletions
+49
-33
BlackGreyListServiceImpl.java
...up/qgblservice/service/impl/BlackGreyListServiceImpl.java
+1
-1
BlackToGreyListParallel.java
...oup/qgblservice/service/impl/BlackToGreyListParallel.java
+29
-19
UpdateBlackListOverdueDayParallel.java
...rvice/service/impl/UpdateBlackListOverdueDayParallel.java
+19
-13
No files found.
src/main/java/cn/quantgroup/qgblservice/service/impl/BlackGreyListServiceImpl.java
View file @
6c5f1c27
...
@@ -780,7 +780,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
...
@@ -780,7 +780,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
//批量 逾期已还清黑名单>>转灰名单
//批量 逾期已还清黑名单>>转灰名单
if
(
blackListResults
!=
null
&&
blackListResults
.
size
()
>
0
){
if
(
blackListResults
!=
null
&&
blackListResults
.
size
()
>
0
){
return
blackToGreyListParallel
.
r
unMain
(
blackListResults
);
return
blackToGreyListParallel
.
r
emoveBlackToGrey
(
blackListResults
);
}
}
return
null
;
return
null
;
}
}
...
...
src/main/java/cn/quantgroup/qgblservice/service/impl/BlackToGreyListParallel.java
View file @
6c5f1c27
This diff is collapsed.
Click to expand it.
src/main/java/cn/quantgroup/qgblservice/service/impl/UpdateBlackListOverdueDayParallel.java
View file @
6c5f1c27
...
@@ -94,10 +94,12 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
...
@@ -94,10 +94,12 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
String
dateName
=
ConstantBlackGrey
.
PARAM
.
DF_YMD
.
format
(
Calendar
.
getInstance
().
getTime
());
String
dateName
=
ConstantBlackGrey
.
PARAM
.
DF_YMD
.
format
(
Calendar
.
getInstance
().
getTime
());
int
list_size
=
blackResultList
.
size
();
int
list_size
=
blackResultList
.
size
();
AtomicInteger
update
_count
=
new
AtomicInteger
();
AtomicInteger
ok
_count
=
new
AtomicInteger
();
AtomicInteger
err_count
=
new
AtomicInteger
();
AtomicInteger
err_count
=
new
AtomicInteger
();
AtomicInteger
type_11
=
new
AtomicInteger
();
AtomicInteger
type_11
=
new
AtomicInteger
();
AtomicInteger
update_count
=
new
AtomicInteger
();
int
index
=
0
;
int
index
=
0
;
for
(
BlackGreyListResult
blackResult
:
blackResultList
)
{
for
(
BlackGreyListResult
blackResult
:
blackResultList
)
{
//blackResult>>r_id,uuid,black_type
//blackResult>>r_id,uuid,black_type
...
@@ -135,15 +137,16 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
...
@@ -135,15 +137,16 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
}
}
});
});
}
catch
(
EmptyResultDataAccessException
e
){
}
catch
(
EmptyResultDataAccessException
e
){
log
.
error
(
"查询
[现金贷]
黑名单逾期天数-查询xyqb异常, r_Id: {} , uuid: {} , id: {} e: {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
e
.
toString
());
log
.
error
(
"查询
(现金贷)
黑名单逾期天数-查询xyqb异常, r_Id: {} , uuid: {} , id: {} e: {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
e
.
toString
());
}
finally
{
}
finally
{
log
.
info
(
"查询
[现金贷]
黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
overdueDays
!=
null
?
JSON
.
toJSONString
(
overdueDays
):
"null"
);
log
.
info
(
"查询
(现金贷)
黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
overdueDays
!=
null
?
JSON
.
toJSONString
(
overdueDays
):
"null"
);
}
}
//修改逾期天数
//修改逾期天数
int
update
=
updateOverdueDay
(
overdueDays
,
detailsVo
,
"现金贷"
);
int
update
=
updateOverdueDay
(
overdueDays
,
detailsVo
,
"现金贷"
);
if
(
update
>
0
){
if
(
update
>
0
){
details_is_update
=
true
;
details_is_update
=
true
;
update_count
.
getAndAdd
(
update
);
}
}
}
}
...
@@ -161,15 +164,16 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
...
@@ -161,15 +164,16 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
}
}
});
});
}
catch
(
EmptyResultDataAccessException
e
){
}
catch
(
EmptyResultDataAccessException
e
){
log
.
error
(
"查询
[白条]
黑名单逾期天数-查询xyqb异常, r_Id: {} , uuid: {} , id: {} e: {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
e
.
toString
());
log
.
error
(
"查询
(白条)
黑名单逾期天数-查询xyqb异常, r_Id: {} , uuid: {} , id: {} e: {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
e
.
toString
());
}
finally
{
}
finally
{
log
.
info
(
"查询
[白条]
黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
overdueDays
!=
null
?
JSON
.
toJSONString
(
overdueDays
):
"null"
);
log
.
info
(
"查询
(白条)
黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
overdueDays
!=
null
?
JSON
.
toJSONString
(
overdueDays
):
"null"
);
}
}
//修改逾期天数
//修改逾期天数
int
update
=
updateOverdueDay
(
overdueDays
,
detailsVo
,
"白条"
);
int
update
=
updateOverdueDay
(
overdueDays
,
detailsVo
,
"白条"
);
if
(
update
>
0
){
if
(
update
>
0
){
details_is_update
=
true
;
details_is_update
=
true
;
update_count
.
getAndAdd
(
update
);
}
}
}
}
...
@@ -190,21 +194,22 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
...
@@ -190,21 +194,22 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
}
}
});
});
}
catch
(
EmptyResultDataAccessException
e
){
}
catch
(
EmptyResultDataAccessException
e
){
log
.
error
(
"查询
[VCC]黑名单逾期天数-查询xyq
b异常, r_Id: {} , uuid: {} , id: {} e: {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
e
.
toString
());
log
.
error
(
"查询
(VCC)黑名单逾期天数-查询acsd
b异常, r_Id: {} , uuid: {} , id: {} e: {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
e
.
toString
());
}
finally
{
}
finally
{
log
.
info
(
"查询
[VCC]
黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
overdueDays
!=
null
?
JSON
.
toJSONString
(
overdueDays
):
"null"
);
log
.
info
(
"查询
(VCC)
黑名单逾期天数-结束, r_Id: {} , uuid: {} , id: {} , overdueDays : {} "
,
rId
,
uuid
,
detailsVo
.
getId
(),
overdueDays
!=
null
?
JSON
.
toJSONString
(
overdueDays
):
"null"
);
}
}
//修改逾期天数
//修改逾期天数
int
update
=
updateOverdueDay
(
overdueDays
,
detailsVo
,
"白条"
);
int
update
=
updateOverdueDay
(
overdueDays
,
detailsVo
,
"白条"
);
if
(
update
>
0
){
if
(
update
>
0
){
details_is_update
=
true
;
details_is_update
=
true
;
update_count
.
getAndAdd
(
update
);
}
}
}
}
}
else
{
}
else
{
//if(detailsVo.getStatus()==0){
//if(detailsVo.getStatus()==0){
err_count
.
getAndIncrement
();
err_count
.
getAndIncrement
();
optSet
.
add
(
"otherType:"
+
blackResult
.
getRId
()
);
optSet
.
add
(
"otherType:"
+
rId
);
writeLogByName
(
ConstantBlackGrey
.
PARAM
.
SAVELOGPATH
+
dateName
+
ConstantBlackGrey
.
PARAM
.
SEPA
+
"error.log"
,
"更新逾期天数时,发现其他类别>>"
+
blackResult
.
getRId
());
writeLogByName
(
ConstantBlackGrey
.
PARAM
.
SAVELOGPATH
+
dateName
+
ConstantBlackGrey
.
PARAM
.
SEPA
+
"error.log"
,
"更新逾期天数时,发现其他类别>>"
+
blackResult
.
getRId
());
//}
//}
}
}
...
@@ -214,27 +219,28 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
...
@@ -214,27 +219,28 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
if
(
details_is_update
){
if
(
details_is_update
){
//更新结果表
//更新结果表
updateResultUpdatedAt
(
blackResult
.
getRId
());
updateResultUpdatedAt
(
blackResult
.
getRId
());
update
_count
.
getAndIncrement
();
ok
_count
.
getAndIncrement
();
}
}
}
else
{
}
else
{
err_count
.
getAndIncrement
();
err_count
.
getAndIncrement
();
optSet
.
add
(
"notFind
:"
+
blackResult
.
getRId
()
);
optSet
.
add
(
"notFind
Deatils:"
+
rId
);
writeLogByName
(
ConstantBlackGrey
.
PARAM
.
SAVELOGPATH
+
dateName
+
ConstantBlackGrey
.
PARAM
.
SEPA
+
"error.log"
,
"更新逾期天数时,结果表没有发现details>>"
+
blackResult
.
getRId
());
writeLogByName
(
ConstantBlackGrey
.
PARAM
.
SAVELOGPATH
+
dateName
+
ConstantBlackGrey
.
PARAM
.
SEPA
+
"error.log"
,
"更新逾期天数时,结果表没有发现details>>"
+
blackResult
.
getRId
());
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
optSet
.
add
(
"ERR:"
+
blackResult
.
getRId
());
err_count
.
getAndIncrement
();
err_count
.
getAndIncrement
();
optSet
.
add
(
"ERR:"
+
rId
);
log
.
error
(
log_inf
+
"更新黑名单逾期天执行异常process() threadId:"
+
threadId
,
e
);
log
.
error
(
log_inf
+
"更新黑名单逾期天执行异常process() threadId:"
+
threadId
,
e
);
}
}
}
else
{
}
else
{
err_count
.
getAndIncrement
();
err_count
.
getAndIncrement
();
optSet
.
add
(
"uuid空:"
+
rId
);
log
.
error
(
"查询黑名单逾期天-发现uuid为空, threadId_{} , r_Id: {} , uuid: {} , blackType: {} "
,
threadId
,
rId
,
uuid
,
blackResult
.
getBlackType
());
log
.
error
(
"查询黑名单逾期天-发现uuid为空, threadId_{} , r_Id: {} , uuid: {} , blackType: {} "
,
threadId
,
rId
,
uuid
,
blackResult
.
getBlackType
());
}
}
}
}
log
.
info
(
log_inf
+
"更新黑名单逾期天数process处理结束CPU_{} ,
update_count: {} , type_11: {} , err_count: {} , this_list_size: {} , 耗时: {} "
,
threadId
,
update_count
.
get
(),
type_11
.
get
(),
err_count
.
get
(),
list_size
,
(
System
.
currentTimeMillis
()-
start
));
log
.
info
(
log_inf
+
"更新黑名单逾期天数process处理结束CPU_{} ,
this_list_size: {} , ok_count: {} , err_count: {} , type_11: {} , update_count: {} , 耗时: {} "
,
threadId
,
list_size
,
ok_count
.
get
(),
err_count
.
get
(),
type_11
.
get
(),
update_count
.
get
(),
(
System
.
currentTimeMillis
()-
start
));
}
}
...
@@ -294,7 +300,7 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
...
@@ -294,7 +300,7 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
return
update
;
return
update
;
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"修改
["
+
log_inf
+
"]
黑名单逾期天数-异常, r_Id: {} , id: {} , overdueDays: {} "
,
detailsVo
.
getRId
(),
detailsVo
.
getId
(),
overdueDays
!=
null
?
JSONObject
.
toJSONString
(
overdueDays
):
"null"
,
e
);
log
.
error
(
"修改
("
+
log_inf
+
")
黑名单逾期天数-异常, r_Id: {} , id: {} , overdueDays: {} "
,
detailsVo
.
getRId
(),
detailsVo
.
getId
(),
overdueDays
!=
null
?
JSONObject
.
toJSONString
(
overdueDays
):
"null"
,
e
);
}
}
return
0
;
return
0
;
}
}
...
...
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