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
ceb05644
Commit
ceb05644
authored
Jul 29, 2019
by
data-爬虫-任锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
助贷资金路由添加日志
parent
8909822d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
AidFundRouteServiceImpl.java
...ibution/service/funding/impl/AidFundRouteServiceImpl.java
+19
-12
No files found.
src/main/java/com/quantgroup/asset/distribution/service/funding/impl/AidFundRouteServiceImpl.java
View file @
ceb05644
...
...
@@ -83,11 +83,27 @@ public class AidFundRouteServiceImpl implements IAidFundRouteService {
//第五步 开始路由
if
(
CollectionUtils
.
isNotEmpty
(
aidLoanFundConfigList
)){
log
.
info
(
"助贷资金优先级筛选开始, uuid : {} , bizNo : {} ,助贷资金池 : {} "
,
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
JSON
.
toJSONString
(
aidLoanFundConfigList
));
//按优先级排序
TreeSet
<
AidLoanFundConfig
>
aidLoanFundConfigSet
=
new
TreeSet
<>(
Comparator
.
comparing
(
AidLoanFundConfig:
:
getFundPriority
));
aidLoanFundConfigSet
.
addAll
(
aidLoanFundConfigList
);
AidLoanFundConfig
first
=
aidLoanFundConfigSet
.
first
();
log
.
info
(
"助贷资金筛选完成, uuid : {} , bizNo : {} ,助贷资金 : {} "
,
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
JSON
.
toJSONString
(
first
));
//保存主贷资金路由记录
AidLoanFundRouteRecord
aidLoanFundRouteRecord
=
new
AidLoanFundRouteRecord
();
aidLoanFundRouteRecord
.
setAidFundRouteStatus
(
1
);
//1-未完成 2-成功 3-失败
aidLoanFundRouteRecord
.
setAssetNo
(
assetForm
.
getAssetNo
());
aidLoanFundRouteRecord
.
setBizChannel
(
assetForm
.
getBizChannel
());
aidLoanFundRouteRecord
.
setBizNo
(
assetForm
.
getBizNo
());
aidLoanFundRouteRecord
.
setFinanceProductType
(
Integer
.
parseInt
(
assetForm
.
getBizType
()));
aidLoanFundRouteRecord
.
setUserLoanType
(
userLoanType
);
aidLoanFundRouteRecord
.
setFundNo
(
first
.
getFundNo
());
aidLoanFundRouteRecord
.
setFundId
(
first
.
getFundId
());
iAidFundRouteRecordService
.
saveAidLoanFundRouteRecord
(
aidLoanFundRouteRecord
);
//通知资方
Map
<
String
,
String
>
response
=
iHttpService
.
postHasResponse
(
assetForm
.
getCallbackUrl
(),
assetForm
.
transToNotifyMap
());
...
...
@@ -96,19 +112,10 @@ public class AidFundRouteServiceImpl implements IAidFundRouteService {
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
));
}
else
{
//保存主贷资金路由记录
AidLoanFundRouteRecord
aidLoanFundRouteRecord
=
new
AidLoanFundRouteRecord
();
aidLoanFundRouteRecord
.
setAidFundRouteStatus
(
1
);
//1-未完成 2-成功 3-失败
aidLoanFundRouteRecord
.
setAssetNo
(
assetForm
.
getAssetNo
());
aidLoanFundRouteRecord
.
setBizChannel
(
assetForm
.
getBizChannel
());
aidLoanFundRouteRecord
.
setBizNo
(
assetForm
.
getBizNo
());
aidLoanFundRouteRecord
.
setFinanceProductType
(
Integer
.
parseInt
(
assetForm
.
getBizType
()));
aidLoanFundRouteRecord
.
setUserLoanType
(
userLoanType
);
aidLoanFundRouteRecord
.
setFundNo
(
first
.
getFundNo
());
aidLoanFundRouteRecord
.
setFundId
(
first
.
getFundId
());
iAidFundRouteRecordService
.
saveAidLoanFundRouteRecord
(
aidLoanFundRouteRecord
);
}
return
GlobalResponse
.
success
();
}
return
GlobalResponse
.
error
(
"未匹配到助贷资金"
);
}
...
...
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