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
f6cd205e
Commit
f6cd205e
authored
Aug 26, 2019
by
data爬虫-冯 军凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新黑名单三要素异常处理
parent
37bf8e7e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
BlackListUpdateThreeEleServiceImpl.java
...vice/service/impl/BlackListUpdateThreeEleServiceImpl.java
+14
-9
No files found.
src/main/java/cn/quantgroup/qgblservice/service/impl/BlackListUpdateThreeEleServiceImpl.java
View file @
f6cd205e
...
...
@@ -4,6 +4,7 @@ import cn.quantgroup.qgblservice.constant.Constant;
import
cn.quantgroup.qgblservice.repository.mybatis.entity.tidb.BlackListQueryTidbVo0
;
import
cn.quantgroup.qgblservice.service.IBlackListUpdateThreeEleService
;
import
cn.quantgroup.qgblservice.utils.blacklist.BlackListUtils
;
import
com.alibaba.fastjson.JSON
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -58,6 +59,7 @@ public class BlackListUpdateThreeEleServiceImpl implements IBlackListUpdateThree
blackListQueryTidbVo01
.
setIdNo
(
blackListQueryTidbVo0
.
getIdNo
());
}
try
{
List
<
BlackListQueryTidbVo0
>
blackListQueryTidbVo0sByUniqueKey
=
blackListJdbcTemplate
.
query
(
String
.
format
(
Constant
.
SQL
.
BLACK_LIST_NEW_QUERY_BY_UNIQUE_KEY_SQL
,
blackListQueryTidbVo0
.
getPhoneNo
(),
blackListQueryTidbVo0
.
getName
(),
blackListQueryTidbVo0
.
getIdNo
(),
blackListQueryTidbVo01
.
getType
()),
new
BeanPropertyRowMapper
<>(
BlackListQueryTidbVo0
.
class
));
...
...
@@ -68,6 +70,9 @@ public class BlackListUpdateThreeEleServiceImpl implements IBlackListUpdateThree
BlackListUtils
.
getOrUpdateBlackListLevel
(
blackListQueryTidbVo01
,
type
);
blackListJdbcTemplate
.
update
(
String
.
format
(
Constant
.
SQL
.
BLACK_LIST_NEW_UPDATE_THREE_ELE_AND_BLACK_LEVEL_SQL
,
blackListQueryTidbVo0
.
getUuid
(),
blackListQueryTidbVo0
.
getName
(),
blackListQueryTidbVo0
.
getPhoneNo
(),
blackListQueryTidbVo0
.
getIdNo
(),
blackListQueryTidbVo01
.
getId
()));
}
}
catch
(
Exception
e
){
log
.
error
(
"更新单条黑名单三要素异常, uploadData: {} , queryData: {} "
,
JSON
.
toJSONString
(
blackListQueryTidbVo01
),
JSON
.
toJSONString
(
blackListQueryTidbVo0
),
e
);
}
}
}
...
...
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