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
b5927723
Commit
b5927723
authored
Apr 20, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
黑灰名单2020.04.20---测试test
parent
cfb9d374
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
BlackGreyListServiceImpl.java
...up/qgblservice/service/impl/BlackGreyListServiceImpl.java
+6
-2
BlackToGreyListParallel.java
...oup/qgblservice/service/impl/BlackToGreyListParallel.java
+11
-3
UpdateBlackListOverdueDayParallel.java
...rvice/service/impl/UpdateBlackListOverdueDayParallel.java
+9
-2
No files found.
src/main/java/cn/quantgroup/qgblservice/service/impl/BlackGreyListServiceImpl.java
View file @
b5927723
...
@@ -286,7 +286,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
...
@@ -286,7 +286,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
/* int insert_result = blackGreyListMapper.insertBlackGreyListResult(insertResult);
/* int insert_result = blackGreyListMapper.insertBlackGreyListResult(insertResult);
int insert_details =blackGreyListMapper.insertBlackGreyListDetails(insertdetails);*/
int insert_details =blackGreyListMapper.insertBlackGreyListDetails(insertdetails);*/
//
log.info("黑灰名单增加结束-结果表插入: {} , 明细表插入: {} ", insertResult.toString(), insertdetails.toString());
log
.
info
(
"黑灰名单增加结束-结果表插入: {} , 明细表插入: {} "
,
insertResult
.
toString
(),
insertdetails
.
toString
());
}
else
{
}
else
{
...
@@ -375,7 +375,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
...
@@ -375,7 +375,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
}
}
int insert_details = blackGreyListMapper.insertBlackGreyListDetails(insertdetails);
int insert_details = blackGreyListMapper.insertBlackGreyListDetails(insertdetails);
int update_result = blackGreyListMapper.updateBlackGreyListResult(updateResult);*/
int update_result = blackGreyListMapper.updateBlackGreyListResult(updateResult);*/
//
log.info("黑灰名单增加结束-结果表修改: {} , 明细表插入: {} , 明细表修改: {} , blackGreyObj : {} ", updateResult.toString(), insertdetails.toString(), deleteDetails, blackGreyObj.toString());
log
.
info
(
"黑灰名单增加结束-结果表修改: {} , 明细表插入: {} , 明细表修改: {} , blackGreyObj : {} "
,
updateResult
.
toString
(),
insertdetails
.
toString
(),
deleteDetails
,
blackGreyObj
.
toString
());
}
}
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -385,6 +385,9 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
...
@@ -385,6 +385,9 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
continue
;
continue
;
}
}
/**
//测试不操作数据
if(deleteDetails!=null){
if(deleteDetails!=null){
StringBuffer sql_buff = new StringBuffer("UPDATE black_grey_list_details set ");
StringBuffer sql_buff = new StringBuffer("UPDATE black_grey_list_details set ");
sql_buff.append(" status=").append(deleteDetails.getStatus()).append(", ");
sql_buff.append(" status=").append(deleteDetails.getStatus()).append(", ");
...
@@ -474,6 +477,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
...
@@ -474,6 +477,7 @@ public class BlackGreyListServiceImpl implements IBlackGreyListService {
}
}
}
}
*/
}
}
...
...
src/main/java/cn/quantgroup/qgblservice/service/impl/BlackToGreyListParallel.java
View file @
b5927723
...
@@ -232,7 +232,10 @@ public class BlackToGreyListParallel implements ParallelComputingProcess<BlackGr
...
@@ -232,7 +232,10 @@ public class BlackToGreyListParallel implements ParallelComputingProcess<BlackGr
detailUpdateParam
.
setRId
(
blackResult
.
getRId
());
detailUpdateParam
.
setRId
(
blackResult
.
getRId
());
detailUpdateParam
.
setWEqStatus
(
10
);
detailUpdateParam
.
setWEqStatus
(
10
);
detailUpdateParam
.
setWInType
(
Arrays
.
asList
(
ConstantBlackGrey
.
PARAM
.
BLACK_LIST_TYPES
));
//('1','2','10')
detailUpdateParam
.
setWInType
(
Arrays
.
asList
(
ConstantBlackGrey
.
PARAM
.
BLACK_LIST_TYPES
));
//('1','2','10')
int
update_d
=
blackGreyListMapper
.
updateDetailsStatusByparams
(
detailUpdateParam
);
//int update_d = blackGreyListMapper.updateDetailsStatusByparams(detailUpdateParam);
//测试不操作数据
int
update_d
=
1
;
log
.
warn
(
"测试不操作数据,updateDetailsStatusByparams:{}"
,
JSONObject
.
toJSONString
(
detailUpdateParam
));
//更新结果表
//更新结果表
BlackGreyListResult
updateResult
=
new
BlackGreyListResult
();
BlackGreyListResult
updateResult
=
new
BlackGreyListResult
();
...
@@ -243,7 +246,10 @@ public class BlackToGreyListParallel implements ParallelComputingProcess<BlackGr
...
@@ -243,7 +246,10 @@ public class BlackToGreyListParallel implements ParallelComputingProcess<BlackGr
if
(
reasonsList
!=
null
){
if
(
reasonsList
!=
null
){
updateResult
.
setReasons
(
JSON
.
toJSONString
(
reasonsList
));
updateResult
.
setReasons
(
JSON
.
toJSONString
(
reasonsList
));
}
}
int
update_r
=
blackGreyListMapper
.
updateBlackGreyListResult
(
updateResult
);
//int update_r = blackGreyListMapper.updateBlackGreyListResult(updateResult);
//测试不操作数据
int
update_r
=
0
;
log
.
warn
(
"测试不操作数据,updateBlackGreyListResult:{}"
,
JSONObject
.
toJSONString
(
updateResult
));
if
(
update_d
>
0
&&
update_r
>
0
){
if
(
update_d
>
0
&&
update_r
>
0
){
remove_count
.
getAndIncrement
();
remove_count
.
getAndIncrement
();
...
@@ -320,7 +326,9 @@ public class BlackToGreyListParallel implements ParallelComputingProcess<BlackGr
...
@@ -320,7 +326,9 @@ public class BlackToGreyListParallel implements ParallelComputingProcess<BlackGr
detailUpdateParam
.
setRId
(
rJoinDVo
.
getRId
());
detailUpdateParam
.
setRId
(
rJoinDVo
.
getRId
());
detailUpdateParam
.
setWEqType
(
rJoinDVo
.
getType
());
detailUpdateParam
.
setWEqType
(
rJoinDVo
.
getType
());
detailUpdateParam
.
setWEqStatus
(
0
);
detailUpdateParam
.
setWEqStatus
(
0
);
int
update
=
blackGreyListMapper
.
updateDetailsStatusByparams
(
detailUpdateParam
);
//int update = blackGreyListMapper.updateDetailsStatusByparams(detailUpdateParam);
int
update
=
1
;
log
.
warn
(
"测试不操作数据, log_inf: {} , updateDetailStatus10:{}"
,
log_inf
,
JSONObject
.
toJSONString
(
detailUpdateParam
));
if
(
update
>
0
){
if
(
update
>
0
){
//用于修改结果表标记
//用于修改结果表标记
rJoinDVo
.
setStatus
(
10
);
rJoinDVo
.
setStatus
(
10
);
...
...
src/main/java/cn/quantgroup/qgblservice/service/impl/UpdateBlackListOverdueDayParallel.java
View file @
b5927723
...
@@ -224,7 +224,10 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
...
@@ -224,7 +224,10 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
BlackGreyListResult
updateResult
=
new
BlackGreyListResult
();
BlackGreyListResult
updateResult
=
new
BlackGreyListResult
();
updateResult
.
setRId
(
blackResult
.
getRId
());
//条件
updateResult
.
setRId
(
blackResult
.
getRId
());
//条件
updateResult
.
setUpdatedAt
(
new
Timestamp
(
System
.
currentTimeMillis
()));
//结果
updateResult
.
setUpdatedAt
(
new
Timestamp
(
System
.
currentTimeMillis
()));
//结果
int
update_r
=
blackGreyListMapper
.
updateBlackGreyListResult
(
updateResult
);
//int update_r = blackGreyListMapper.updateBlackGreyListResult(updateResult);
//测试不操作数据
int
update_r
=
1
;
log
.
warn
(
"测试不操作数据, 更新时间, updateBlackGreyListResult:{}"
,
JSONObject
.
toJSONString
(
updateResult
));
update_count
.
getAndIncrement
();
update_count
.
getAndIncrement
();
}
}
...
@@ -301,7 +304,11 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
...
@@ -301,7 +304,11 @@ public class UpdateBlackListOverdueDayParallel implements ParallelComputingProce
//detailUpdateParam.setRId(detailsVo.getRId());
//detailUpdateParam.setRId(detailsVo.getRId());
//detailUpdateParam.setWEqType(detailsVo.getType());
//detailUpdateParam.setWEqType(detailsVo.getType());
//detailUpdateParam.setWEqStatus(0);
//detailUpdateParam.setWEqStatus(0);
int
update
=
blackGreyListMapper
.
updateDetailOverdueDayById
(
detailUpdateParam
);
//int update = blackGreyListMapper.updateDetailOverdueDayById(detailUpdateParam);
log
.
warn
(
"测试不操作数据, log_inf: {} , updateOverdueDay:{}"
,
log_inf
,
JSONObject
.
toJSONString
(
detailUpdateParam
));
//测试不操作数据
int
update
=
1
;
return
update
;
return
update
;
}
}
...
...
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