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
9b5d9f8d
Commit
9b5d9f8d
authored
Aug 16, 2019
by
data爬虫-冯 军凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缓存reload fix
parent
9321b413
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
7 deletions
+37
-7
BlackListCacheManagerController.java
...blservice/controller/BlackListCacheManagerController.java
+33
-0
BlackListImportManagerJob.java
...p/qgblservice/job/blimport/BlackListImportManagerJob.java
+0
-4
BlackListType.java
...quantgroup/qgblservice/model/blacklist/BlackListType.java
+1
-1
IBlackListManagerService.java
...ntgroup/qgblservice/service/IBlackListManagerService.java
+0
-1
IBlackListQueryManagerService.java
...up/qgblservice/service/IBlackListQueryManagerService.java
+1
-0
IThirdPartBlackListManagerService.java
...gblservice/service/IThirdPartBlackListManagerService.java
+1
-0
BlackListManagerServiceImpl.java
...qgblservice/service/impl/BlackListManagerServiceImpl.java
+1
-1
No files found.
src/main/java/cn/quantgroup/qgblservice/controller/BlackListCacheManagerController.java
View file @
9b5d9f8d
package
cn
.
quantgroup
.
qgblservice
.
controller
;
import
cn.quantgroup.qgblservice.response.GlobalResponse
;
import
cn.quantgroup.qgblservice.service.IBlackListQueryManagerService
;
import
cn.quantgroup.qgblservice.service.IThirdPartBlackListManagerService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -9,10 +14,38 @@ import org.springframework.web.bind.annotation.RestController;
* @Author fengjunkai
* @Date 2019-07-31 17:16
*/
@Slf4j
@RestController
@RequestMapping
(
"/"
)
public
class
BlackListCacheManagerController
{
@Autowired
private
IThirdPartBlackListManagerService
iThirdPartBlackListManagerService
;
@Autowired
private
IBlackListQueryManagerService
iBlackListQueryManagerService
;
@RequestMapping
(
"/third_cache_reload"
)
public
GlobalResponse
reloadThirdCacheConfig
(){
try
{
iThirdPartBlackListManagerService
.
initThirdPartBlackListConfig
();
log
.
info
(
"更新三方数据源缓存配置成功"
);
return
GlobalResponse
.
success
(
"更新三方数据源缓存配置成功"
);
}
catch
(
Exception
e
){
log
.
error
(
"更新三方数据源缓存配置异常"
,
e
);
}
return
GlobalResponse
.
error
(
"更新三方数据源缓存配置失败"
);
}
@RequestMapping
(
"/black_expire_reload"
)
public
GlobalResponse
reloadBlackExpire
(){
try
{
iBlackListQueryManagerService
.
initChannelBlackListExpireConfig
();
log
.
info
(
"更新有效期配置成功"
);
return
GlobalResponse
.
success
(
"更新有效期配置成功"
);
}
catch
(
Exception
e
){
log
.
error
(
"更新有效期配置异常"
,
e
);
}
return
GlobalResponse
.
error
(
"更新有效期配置失败"
);
}
}
src/main/java/cn/quantgroup/qgblservice/job/blimport/BlackListImportManagerJob.java
View file @
9b5d9f8d
...
...
@@ -32,8 +32,4 @@ public class BlackListImportManagerJob {
}
public
static
void
main
(
String
[]
args
)
{
}
}
src/main/java/cn/quantgroup/qgblservice/model/blacklist/BlackListType.java
View file @
9b5d9f8d
...
...
@@ -13,7 +13,7 @@ public enum BlackListType {
QUNAR
(
"去哪儿黑名单"
,
"3"
),
COURT
(
"法院黑名单"
,
"4"
),
OFF_LINE
(
"线下黑名单"
,
"5"
),
XINYAN_CASH
(
"新
颜
套现黑名单"
,
"6"
),
XINYAN_CASH
(
"新
氧
套现黑名单"
,
"6"
),
PHONE_CASH
(
"手机套现黑名单"
,
"8"
),
HUAN_QIU_BLACK_CARD
(
"环球黑卡黑名单"
,
"9"
),
P2P
(
"P2P黑名单"
,
"101"
),
...
...
src/main/java/cn/quantgroup/qgblservice/service/IBlackListManagerService.java
View file @
9b5d9f8d
...
...
@@ -4,7 +4,6 @@ package cn.quantgroup.qgblservice.service;
* @Author fengjunkai
* @Date 2019-08-05 16:43
*/
@Deprecated
public
interface
IBlackListManagerService
{
public
void
blackListRealTimeManagerByDay
();
...
...
src/main/java/cn/quantgroup/qgblservice/service/IBlackListQueryManagerService.java
View file @
9b5d9f8d
...
...
@@ -9,5 +9,6 @@ import cn.quantgroup.qgblservice.response.GlobalResponse;
public
interface
IBlackListQueryManagerService
{
public
GlobalResponse
queryBlackList
(
String
uuid
,
String
name
,
String
phoneNo
,
String
idCard
,
String
type
);
public
void
initChannelBlackListExpireConfig
();
}
src/main/java/cn/quantgroup/qgblservice/service/IThirdPartBlackListManagerService.java
View file @
9b5d9f8d
...
...
@@ -9,5 +9,6 @@ import cn.quantgroup.qgblservice.response.GlobalResponse;
public
interface
IThirdPartBlackListManagerService
{
public
GlobalResponse
saveThirdPartBlackList
(
String
uuid
,
String
name
,
String
phoneNo
,
String
idCard
,
String
type
);
public
void
initThirdPartBlackListConfig
();
}
src/main/java/cn/quantgroup/qgblservice/service/impl/BlackListManagerServiceImpl.java
View file @
9b5d9f8d
...
...
@@ -49,7 +49,7 @@ public class BlackListManagerServiceImpl implements IBlackListManagerService {
List
<
BlackListQueryTidbVo0
>
blackListQueryTidbVo0s
=
new
ArrayList
<>();
Stopwatch
stopwatch
=
Stopwatch
.
createStarted
();
List
<
BlackListQueryTidbVo0
>
userLoanOverdue15DaysLists
=
xyqbJdbcTemplate
.
query
(
Constant
.
SQL
.
XYQB_QUERY_USER_LOAN_OVERDUE_15DAY_SQL
,
new
BeanPropertyRowMapper
<>(
BlackListQueryTidbVo0
.
class
));
log
.
info
(
"每天执行查询15+逾期用户黑名单, result
: {} , 耗时: {} "
,
JSON
.
toJSONString
(
userLoanOverdue15DaysLists
),
stopwatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
));
log
.
info
(
"每天执行查询15+逾期用户黑名单, result
Size: {} , 耗时: {} "
,
userLoanOverdue15DaysLists
.
size
(
),
stopwatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
));
for
(
int
i
=
0
;
i
<
userLoanOverdue15DaysLists
.
size
();
i
++)
{
...
...
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