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
43960b1e
Commit
43960b1e
authored
May 22, 2020
by
liwenbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加期数额度限制字段
parent
71fdf33e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
AssetForm.java
...m/quantgroup/asset/distribution/model/form/AssetForm.java
+3
-0
NotifyServiceImpl.java
...t/distribution/service/notify/impl/NotifyServiceImpl.java
+2
-2
No files found.
src/main/java/com/quantgroup/asset/distribution/model/form/AssetForm.java
View file @
43960b1e
...
@@ -53,6 +53,8 @@ public class AssetForm implements Serializable{
...
@@ -53,6 +53,8 @@ public class AssetForm implements Serializable{
private
String
sceneId
;
private
String
sceneId
;
private
String
amountTermLimits
;
public
Asset
transToAsset
()
{
public
Asset
transToAsset
()
{
Asset
asset
=
new
Asset
();
Asset
asset
=
new
Asset
();
asset
.
setAssetNo
(
this
.
assetNo
);
asset
.
setAssetNo
(
this
.
assetNo
);
...
@@ -85,6 +87,7 @@ public class AssetForm implements Serializable{
...
@@ -85,6 +87,7 @@ public class AssetForm implements Serializable{
notifyMap
.
put
(
"exData"
,
this
.
exData
);
notifyMap
.
put
(
"exData"
,
this
.
exData
);
notifyMap
.
put
(
"otherInformation"
,
this
.
otherInformation
);
notifyMap
.
put
(
"otherInformation"
,
this
.
otherInformation
);
notifyMap
.
put
(
"financeProducts"
,
this
.
financeProducts
);
notifyMap
.
put
(
"financeProducts"
,
this
.
financeProducts
);
notifyMap
.
put
(
"amountTermLimits"
,
this
.
amountTermLimits
);
Map
<
String
,
Object
>
dataMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
dataMap
=
new
HashMap
<>();
// 目前通知资金方可能有3个模型分
// 目前通知资金方可能有3个模型分
...
...
src/main/java/com/quantgroup/asset/distribution/service/notify/impl/NotifyServiceImpl.java
View file @
43960b1e
...
@@ -46,7 +46,7 @@ public class NotifyServiceImpl implements INotifyService{
...
@@ -46,7 +46,7 @@ public class NotifyServiceImpl implements INotifyService{
}
}
Map
<
String
,
String
>
response
=
httpService
.
postHasResponse
(
assetForm
.
getCallbackUrl
(),
notifyMap
);
Map
<
String
,
String
>
response
=
httpService
.
postHasResponse
(
assetForm
.
getCallbackUrl
(),
notifyMap
);
log
.
info
(
"通知资金系统结果结束, uuid : {}, bizNo : {}, assetNo : {}, callbackUrl : {}, notifyForm : {}, response : {}"
,
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
assetForm
.
getAssetNo
(),
assetForm
.
getCallbackUrl
(),
JSON
.
toJSONString
(
notifyMap
),
JSON
.
toJSONString
(
response
));
log
.
info
(
"通知资金系统结果结束, uuid : {}, bizNo : {}, assetNo : {}, callbackUrl : {}, notifyForm : {}, response : {}"
,
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
assetForm
.
getAssetNo
(),
assetForm
.
getCallbackUrl
(),
JSON
.
toJSONString
(
notifyMap
),
JSON
.
toJSONString
(
response
));
if
(
response
==
null
||
response
.
size
()==
0
||
!
"200"
.
equals
(
response
.
get
(
"statusCode"
))
||
(!
"success"
.
equals
(
response
.
get
(
"response"
))
&&
0
!=
JSONObject
.
parseObject
(
response
.
get
(
"response"
)).
getInteger
(
"code"
).
intValue
(
)))
{
if
(
response
==
null
||
response
.
size
()==
0
||
!
"200"
.
equals
(
response
.
get
(
"statusCode"
))
||
(!
"success"
.
equals
(
response
.
get
(
"response"
))
&&
(!
JSONObject
.
isValidObject
(
response
.
get
(
"response"
))
||
0
!=
JSONObject
.
parseObject
(
response
.
get
(
"response"
)).
getInteger
(
"code"
).
intValue
()
)))
{
throw
new
QGException
(
QGExceptionType
.
NOTIFY_FUND_SERVER_ERROR
,
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
assetForm
.
getAssetNo
());
throw
new
QGException
(
QGExceptionType
.
NOTIFY_FUND_SERVER_ERROR
,
assetForm
.
getUuid
(),
assetForm
.
getBizNo
(),
assetForm
.
getAssetNo
());
}
}
}
}
...
...
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