Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
asset-distribution
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
asset-distribution
Commits
e0fb86ea
Commit
e0fb86ea
authored
Sep 25, 2021
by
王业雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加日志
parent
7b178713
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
NewAssertController.java
...up/asset/distribution/controller/NewAssertController.java
+1
-0
CoreFilter.java
...tgroup/asset/distribution/service/newrule/CoreFilter.java
+5
-0
No files found.
src/main/java/com/quantgroup/asset/distribution/controller/NewAssertController.java
View file @
e0fb86ea
...
...
@@ -35,6 +35,7 @@ public class NewAssertController {
try
{
coreFilter
.
coreHandle
(
auditResponce
);
}
catch
(
Exception
e
)
{
log
.
info
(
"assetsHandler | 有异常"
);
return
GlobalResponse
.
error
(
e
.
getMessage
());
}
return
GlobalResponse
.
create
(
AssetResponse
.
SUCCESS
);
...
...
src/main/java/com/quantgroup/asset/distribution/service/newrule/CoreFilter.java
View file @
e0fb86ea
...
...
@@ -88,6 +88,7 @@ public class CoreFilter {
continue
;
}
if
(
currentVerify
(
fundProduct
,
auditResponce
,
associationBean
,
channelRuleEntity
)){
log
.
info
(
"coreHandle | 所有规则校验通过"
);
financeProducts
.
add
(
build
(
auditResponce
,
fundProduct
,
channelRuleEntity
));
}
routingRecordList
.
add
(
generateRouteRecord
(
channelRuleEntity
));
...
...
@@ -97,6 +98,7 @@ public class CoreFilter {
}
FilterResult
result
=
new
FilterResult
();
result
.
setFinanceProducts
(
JSON
.
toJSONString
(
financeProducts
));
log
.
info
(
"coreHandle | 通知业务系统审核结果"
);
Map
<
String
,
String
>
response
=
httpService
.
postHasResponse
(
auditResponce
.
getCallbackUrl
(),
result
.
get
(
auditResponce
));
if
(
MapUtils
.
isEmpty
(
response
)
||
!(
HttpStatus
.
OK
.
value
()
+
""
).
equals
(
response
.
get
(
"statusCode"
))
||
(!
"success"
.
equals
(
response
.
get
(
"response"
))
&&
(!
JSONObject
.
isValidObject
(
response
.
get
(
"response"
))
...
...
@@ -108,6 +110,7 @@ public class CoreFilter {
log
.
error
(
"通知业务系统审核结果失败 {}"
,
JSON
.
toJSONString
(
auditResponce
));
throw
new
QGException
(
QGExceptionType
.
NOTIFY_BIZ_ERROR
);
}
else
{
log
.
info
(
"coreHandle | 保存路由记录"
);
RoutingRecordEntity
routingRecordEntity
=
new
RoutingRecordEntity
();
routingRecordEntity
.
setCreditNo
(
auditResponce
.
getBizNo
());
routingRecordEntity
.
setPhone
(
associationBean
.
getPhoneNo
());
...
...
@@ -154,6 +157,7 @@ public class CoreFilter {
WhiteListEntity
whiteListEntity
=
whiteListRepository
.
getByPhoneEquals
(
associationBean
.
getPhoneNo
());
Boolean
basicInfoVerify
=
basicInfoVerify
(
fundProduct
,
associationBean
,
auditResponce
,
channelRuleEntity
);
if
(
whiteListEntity
!=
null
&&
basicInfoVerify
){
log
.
info
(
"currentVerify | 走白名单"
);
return
Boolean
.
TRUE
;
}
return
specialInfoVerify
(
fundProduct
,
associationBean
)
&&
basicInfoVerify
;
...
...
@@ -246,6 +250,7 @@ public class CoreFilter {
return
Boolean
.
FALSE
;
}
}
log
.
info
(
"specialInfoVerify | 当前用户其他规则检验通过"
);
return
Boolean
.
TRUE
;
}
...
...
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