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
b5a18c79
Commit
b5a18c79
authored
Jul 29, 2019
by
data-爬虫-任锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
助贷资金路由添加日志
parent
ceb05644
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
ConsumerConfig.java
...up/asset/distribution/config/rabbitmq/ConsumerConfig.java
+3
-3
AidFundRouteServiceImpl.java
...ibution/service/funding/impl/AidFundRouteServiceImpl.java
+3
-2
AidLoanFundConfigServiceImpl.java
...on/service/funding/impl/AidLoanFundConfigServiceImpl.java
+1
-1
No files found.
src/main/java/com/quantgroup/asset/distribution/config/rabbitmq/ConsumerConfig.java
View file @
b5a18c79
...
...
@@ -65,9 +65,9 @@ public class ConsumerConfig implements RabbitListenerConfigurer {
log
.
info
(
"助贷资金路由结果消息接收, 消息内容 : {} "
,
ms
);
JSONObject
jo
=
JSONObject
.
parseObject
(
ms
);
String
noticeType
=
jo
.
getString
(
"noticeType"
);
if
(
FundingResult
.
REJECT
.
get
Text
().
equals
(
noticeType
)
||
FundingResult
.
CANCEL_LOAN
.
get
Text
().
equals
(
noticeType
)
||
FundingResult
.
FUAD_ASSIGN_SUCC
.
get
Text
().
equals
(
noticeType
)){
if
(
FundingResult
.
REJECT
.
get
Code
().
equals
(
noticeType
)
||
FundingResult
.
CANCEL_LOAN
.
get
Code
().
equals
(
noticeType
)
||
FundingResult
.
FUAD_ASSIGN_SUCC
.
get
Code
().
equals
(
noticeType
)){
String
applyNo
=
jo
.
getJSONObject
(
"data"
).
getString
(
"applyNo"
);
iAidFundRouteRecordService
.
fundingResultNotity
(
applyNo
,
FundingResult
.
getAuditResultByDesc
(
noticeType
));
log
.
info
(
"助贷资金路由结果消息处理完毕, bizNo : {} ,noticeType : {} "
,
applyNo
,
noticeType
);
...
...
src/main/java/com/quantgroup/asset/distribution/service/funding/impl/AidFundRouteServiceImpl.java
View file @
b5a18c79
...
...
@@ -61,6 +61,7 @@ public class AidFundRouteServiceImpl implements IAidFundRouteService {
//第一步 查询所有助贷资金
List
<
AidLoanFundConfig
>
aidLoanFundConfigList
=
iAidLoanFundConfigService
.
findAll
();
log
.
info
(
"助贷资金路由开始, uuid : {} , bizNo : {} ,助贷资金池 : {} "
,
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
JSON
.
toJSONString
(
aidLoanFundConfigList
));
//第二步 开关筛选
if
(
CollectionUtils
.
isNotEmpty
(
aidLoanFundConfigList
))
...
...
@@ -107,11 +108,11 @@ public class AidFundRouteServiceImpl implements IAidFundRouteService {
//通知资方
Map
<
String
,
String
>
response
=
iHttpService
.
postHasResponse
(
assetForm
.
getCallbackUrl
(),
assetForm
.
transToNotifyMap
());
log
.
info
(
"通知资金系统结束,response :{}, uuid : {} , bizNo : {} , callbackUrl:{},params:{}"
,
JSON
.
toJSONString
(
response
),
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
assetForm
.
getCallbackUrl
(),
JSON
.
toJSONString
(
assetForm
));
log
.
info
(
"
助贷资金路由-
通知资金系统结束,response :{}, uuid : {} , bizNo : {} , callbackUrl:{},params:{}"
,
JSON
.
toJSONString
(
response
),
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
assetForm
.
getCallbackUrl
(),
JSON
.
toJSONString
(
assetForm
));
if
(
response
==
null
||
response
.
size
()==
0
||
!
"200"
.
equals
(
response
.
get
(
"statusCode"
))
||
"error"
.
equals
(
response
.
get
(
"response"
)))
{
assetForm
.
setRepeatCount
(
assetForm
.
getRepeatCount
()
+
1
);
redisServiceAssetForm
.
rightPushEx
(
"AID.LOAN.FUND.ROUTE.NOTIFY.83IUE"
,
assetForm
,
1
,
TimeUnit
.
DAYS
);
log
.
info
(
"通知资金系统失败,response :{}, uuid : {} , bizNo : {} , callbackUrl:{},params:{}"
,
JSON
.
toJSONString
(
response
),
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
assetForm
.
getCallbackUrl
(),
JSON
.
toJSONString
(
assetForm
));
log
.
info
(
"
助贷资金路由-
通知资金系统失败,response :{}, uuid : {} , bizNo : {} , callbackUrl:{},params:{}"
,
JSON
.
toJSONString
(
response
),
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
assetForm
.
getCallbackUrl
(),
JSON
.
toJSONString
(
assetForm
));
}
return
GlobalResponse
.
success
();
...
...
src/main/java/com/quantgroup/asset/distribution/service/funding/impl/AidLoanFundConfigServiceImpl.java
View file @
b5a18c79
...
...
@@ -41,7 +41,7 @@ public class AidLoanFundConfigServiceImpl implements IAidLoanFundConfigService {
String
poolKey
=
AID_LOAN_FUND_CONFIG_POOL
.
isEnable
()?
redisService
.
hmget
(
AID_LOAN_POOLKEYS_HMSET_KEY
,
AID_LOAN_FUND_CONFIG_POOL
.
getPoolKey
()):
null
;
if
(
StringUtils
.
isEmpty
(
poolKey
))
{
List
<
AidLoanFundConfig
>
aidLoanFundConfigs
=
iAidLoanFundConfigRepository
.
findByEnableTrue
();
if
(
CollectionUtils
.
isEmpty
(
aidLoanFundConfigs
))
{
if
(
CollectionUtils
.
is
Not
Empty
(
aidLoanFundConfigs
))
{
String
key
=
UUIDUtil
.
getUuid
();
AID_LOAN_FUND_CONFIG_POOL
.
setPoolKey
(
key
);
AID_LOAN_FUND_CONFIG_POOL
.
setAidLoanFundConfigList
(
aidLoanFundConfigs
);
...
...
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