Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-support-rlwx
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rl
hls-support-rlwx
Commits
461ea36e
Commit
461ea36e
authored
Dec 22, 2022
by
胡建龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]修复通知接口接收参数异常及增加日志
parent
ad1f4ec7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
PingAnController.java
...ava/com/hand/app/pingAn/controllers/PingAnController.java
+2
-3
PingAnService.java
.../main/java/com/hand/app/pingAn/service/PingAnService.java
+1
-1
PingAnServiceImpl.java
...a/com/hand/app/pingAn/service/impl/PingAnServiceImpl.java
+7
-6
No files found.
core/src/main/java/com/hand/app/pingAn/controllers/PingAnController.java
View file @
461ea36e
...
...
@@ -46,10 +46,9 @@ public class PingAnController extends BaseController {
@ApiModelProperty
(
"明细通知接口(BEDL_ZNA001)"
)
@RequestMapping
(
"/api/public/pingAn/notify"
)
@ResponseBody
public
String
DetailsNotify
(
HttpServletRequest
request
,
JSONObject
data
){
public
JSONObject
DetailsNotify
(
HttpServletRequest
request
,
@RequestBody
(
required
=
true
)
JSONObject
data
){
IRequest
iRequest
=
createRequestContext
(
request
);
pingAnService
.
detailNotify
(
iRequest
,
data
);
return
"A001010101009010800000099910000000001939ZNA001123450120120620151810201206180000011037 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
;
return
pingAnService
.
detailNotify
(
iRequest
,
data
);
}
@ApiModelProperty
(
"清分台账明细下载(BEDL_F0P101)"
)
...
...
core/src/main/java/com/hand/app/pingAn/service/PingAnService.java
View file @
461ea36e
...
...
@@ -10,7 +10,7 @@ public interface PingAnService {
JSONObject
invoke
(
String
interfaceName
,
JSONObject
params
);
ResponseData
detailNotify
(
IRequest
iRequest
,
JSONObject
data
);
JSONObject
detailNotify
(
IRequest
iRequest
,
JSONObject
data
);
public
JSONObject
preInvoke
(
IRequest
iRequest
,
String
interfaceName
,
JSONObject
params
);
}
core/src/main/java/com/hand/app/pingAn/service/impl/PingAnServiceImpl.java
View file @
461ea36e
...
...
@@ -146,18 +146,19 @@ public class PingAnServiceImpl implements PingAnService {
}
public
ResponseData
detailNotify
(
IRequest
iRequest
,
JSONObject
data
)
{
ResponseData
responseData
=
new
ResponseData
();
public
JSONObject
detailNotify
(
IRequest
iRequest
,
JSONObject
data
)
{
JSONObject
responseData
=
new
JSONObject
();
logger
.
info
(
"接收推送消息,推送参数: {}"
,
data
.
toString
());
if
(
Objects
.
nonNull
(
data
)
&&
data
.
size
()
>
0
)
{
// 存表
HlsEbankCcbTransaction
hlsEbankCcbTransaction
=
saveTransaction
(
iRequest
,
data
);
// 调用系统的接口服务,推送通知数据
postNotify
(
JSONObject
.
toJSONString
(
hlsEbankCcbTransaction
));
responseData
.
setSuccess
(
true
);
responseData
.
setMessage
(
"接收成功"
);
responseData
.
put
(
"TxnReturnCode "
,
"000000"
);
responseData
.
put
(
"TxnReturnMsg "
,
"接收成功"
);
}
else
{
responseData
.
setSuccess
(
false
);
responseData
.
setMessage
(
"接收失败"
);
responseData
.
put
(
"TxnReturnCode "
,
"111111"
);
responseData
.
put
(
"TxnReturnMsg "
,
"接收失败"
);
}
return
responseData
;
}
...
...
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