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
71069ce7
Commit
71069ce7
authored
Apr 22, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
黑灰名单2020.04.22_02
parent
d6a05dc7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
14 deletions
+13
-14
BlackGreyListServiceImpl.java
...up/qgblservice/service/impl/BlackGreyListServiceImpl.java
+2
-2
BlackToGreyListParallel.java
...oup/qgblservice/service/impl/BlackToGreyListParallel.java
+7
-4
UpdateBlackListOverdueDayParallel.java
...rvice/service/impl/UpdateBlackListOverdueDayParallel.java
+4
-8
No files found.
src/main/java/cn/quantgroup/qgblservice/service/impl/BlackGreyListServiceImpl.java
View file @
71069ce7
...
...
@@ -745,7 +745,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
Integer
maxId
=
0
;
try
{
maxId
=
xyqb
JdbcTemplate
.
queryForObject
(
ConstantBlackGrey
.
SQL
.
BL_QUERY_BLACKLIST_RESULT_MAX_ID
,
Integer
.
class
);
maxId
=
blackList
JdbcTemplate
.
queryForObject
(
ConstantBlackGrey
.
SQL
.
BL_QUERY_BLACKLIST_RESULT_MAX_ID
,
Integer
.
class
);
}
catch
(
EmptyResultDataAccessException
e
){
log
.
error
(
"查询结果表-黑名单最大Id异常, sql: {} "
,
ConstantBlackGrey
.
SQL
.
BL_QUERY_BLACKLIST_RESULT_MAX_ID
,
e
);
}
...
...
@@ -873,7 +873,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
Integer
maxId
=
0
;
try
{
maxId
=
xyqb
JdbcTemplate
.
queryForObject
(
ConstantBlackGrey
.
SQL
.
BL_QUERY_BLACKLIST_RESULT_MAX_ID
,
Integer
.
class
);
maxId
=
blackList
JdbcTemplate
.
queryForObject
(
ConstantBlackGrey
.
SQL
.
BL_QUERY_BLACKLIST_RESULT_MAX_ID
,
Integer
.
class
);
}
catch
(
EmptyResultDataAccessException
e
){
log
.
error
(
"查询结果表-黑名单最大Id异常, sql: {} "
,
ConstantBlackGrey
.
SQL
.
BL_QUERY_BLACKLIST_RESULT_MAX_ID
,
e
);
}
...
...
src/main/java/cn/quantgroup/qgblservice/service/impl/BlackToGreyListParallel.java
View file @
71069ce7
...
...
@@ -174,9 +174,11 @@ public class BlackToGreyListParallel implements ParallelComputingProcess<BlackGr
}
}
else
{
err_count
.
getAndIncrement
();
optSet
.
add
(
"otherType:"
+
blackResult
.
getRId
());
writeLogByName
(
ConstantBlackGrey
.
PARAM
.
SAVELOGPATH
+
dateName
+
ConstantBlackGrey
.
PARAM
.
SEPA
+
"error.log"
,
"black_list_result_not_find_details>>"
+
blackResult
.
getRId
());
if
(
detailsVo
.
getStatus
()==
0
){
err_count
.
getAndIncrement
();
optSet
.
add
(
"otherType:"
+
blackResult
.
getRId
());
writeLogByName
(
ConstantBlackGrey
.
PARAM
.
SAVELOGPATH
+
dateName
+
ConstantBlackGrey
.
PARAM
.
SEPA
+
"error.log"
,
"black_list_result_not_find_details>>"
+
blackResult
.
getRId
());
}
}
}
...
...
@@ -240,6 +242,7 @@ public class BlackToGreyListParallel implements ParallelComputingProcess<BlackGr
}
}
catch
(
Exception
e
)
{
err_count
.
getAndIncrement
();
optSet
.
add
(
"ERR:"
+
blackResult
.
getRId
());
log
.
error
(
log_inf
+
"process() threadId:"
+
threadId
+
",ERROR!"
,
e
);
}
...
...
@@ -249,7 +252,7 @@ public class BlackToGreyListParallel implements ParallelComputingProcess<BlackGr
}
log
.
info
(
log_inf
+
"处理结束 CPU_{} , remove_count:{} ,
失败:{} , this_list_size: {} "
,
threadId
,
remove_count
.
get
(),
err_count
.
get
(),
list_size
);
log
.
info
(
log_inf
+
"处理结束 CPU_{} , remove_count:{} ,
type_11: {} , 失败:{} , this_list_size: {} "
,
threadId
,
remove_count
.
get
(),
type_11
.
get
(),
err_count
.
get
(),
list_size
);
}
...
...
src/main/java/cn/quantgroup/qgblservice/service/impl/UpdateBlackListOverdueDayParallel.java
View file @
71069ce7
...
...
@@ -208,14 +208,9 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
//如果明细表有修改,更新一下结果表修改时间
if
(
details_is_update
){
/* //更新结果表
BlackGreyListResult updateResult = new BlackGreyListResult();
updateResult.setRId(blackResult.getRId());//条件
updateResult.setUpdatedAt(new Timestamp(System.currentTimeMillis()));//结果
int update_r = blackGreyListMapper.updateBlackGreyListResult(updateResult);
*/
update_count
.
getAndIncrement
();
//更新结果表
updateResultUpdatedAt
(
blackResult
.
getRId
());
update_count
.
getAndIncrement
();
}
}
else
{
...
...
@@ -226,9 +221,11 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
}
catch
(
Exception
e
)
{
optSet
.
add
(
"ERR:"
+
blackResult
.
getRId
());
err_count
.
getAndIncrement
();
log
.
error
(
log_inf
+
"process() threadId:"
+
threadId
+
",ERROR!"
,
e
);
}
}
else
{
err_count
.
getAndIncrement
();
log
.
error
(
"查询黑名单逾期天-发现uuid为空, threadId_{} , r_Id: {} , uuid: {} , blackType: {} "
,
threadId
,
rId
,
uuid
,
blackResult
.
getBlackType
());
}
...
...
@@ -304,7 +301,6 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
//更新结果表,updatedAt时间
@Async
private
int
updateResultUpdatedAt
(
String
rId
){
int
update_r
=
0
;
try
{
...
...
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