Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
5fb189cb
提交
5fb189cb
authored
1月 30, 2024
作者:
aiqingguo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
承运借款流程-宁波银行
上级
98fc3d69
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
54 行增加
和
8 行删除
+54
-8
NbBankOrderResultVO.java
...com/clx/performance/vo/pc/nbbank/NbBankOrderResultVO.java
+2
-1
TempBankController.java
...m/clx/performance/controller/temp/TempBankController.java
+19
-1
NbBankServiceImpl.java
...nce/service/impl/thirdparty/nbbank/NbBankServiceImpl.java
+28
-6
NbBankService.java
.../performance/service/thirdparty/nbbank/NbBankService.java
+5
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/vo/pc/nbbank/NbBankOrderResultVO.java
浏览文件 @
5fb189cb
...
...
@@ -33,7 +33,7 @@ public class NbBankOrderResultVO {
@ApiModelProperty
(
value
=
"转账编号(转账专用)"
,
example
=
"1234567"
)
private
String
signNo
;
@ApiModelProperty
(
value
=
"交易状态
"
,
example
=
"
"
)
@ApiModelProperty
(
value
=
"交易状态
:1交易成功 2交易失败 3交易已受理 4订单初始状态 5交易不存在 6交易超时"
,
example
=
"1
"
)
private
Integer
transStatus
;
}
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/controller/temp/TempBankController.java
浏览文件 @
5fb189cb
...
...
@@ -38,7 +38,17 @@ public class TempBankController {
public
Result
<
NbBankOrderPayResultVO
>
orderDirectPay
()
{
// return Result.ok(bankService.orderDirectPay(null,2,"313332082914","86041110000076809", "黑玫瑰"));
return
Result
.
ok
(
bankService
.
orderDirectPay
(
null
,
2
,
"313332082914"
,
"86041110000075926"
,
"客户客户"
));
// return Result.ok(bankService.orderDirectPay(null,2,"313332082914","86041110000075926", "客户客户"));
return
Result
.
ok
(
bankService
.
orderDirectPay
(
null
,
1
,
"313332082914"
,
"86031110000180611"
,
"槟榔王"
));
}
@ApiOperation
(
value
=
"订单支付1"
,
notes
=
"<br>By:艾庆国"
)
@RequestMapping
(
value
=
"/orderDirectPay1"
,
method
=
RequestMethod
.
POST
)
public
Result
<
NbBankOrderPayResultVO
>
orderDirectPay1
(
String
payAcctNo
,
String
payAcctNm
)
{
// return Result.ok(bankService.orderDirectPay(null,2,"313332082914","86041110000076809", "黑玫瑰"));
// return Result.ok(bankService.orderDirectPay(null,2,"313332082914","86041110000075926", "客户客户"));
return
Result
.
ok
(
bankService
.
orderDirectPay
(
null
,
1
,
"313332082914"
,
payAcctNo
,
payAcctNm
));
}
@ApiOperation
(
value
=
"查询"
,
notes
=
"<br>By:艾庆国"
)
...
...
@@ -62,4 +72,12 @@ public class TempBankController {
return
Result
.
ok
(
bankService
.
refund
(
orgMerSeqNo
,
amount
,
orgTransSeqNo
));
}
@ApiOperation
(
value
=
"回调"
,
notes
=
"<br>By:艾庆国"
)
@RequestMapping
(
value
=
"/notify"
,
method
=
RequestMethod
.
POST
)
public
Result
notify
(
NbBankOrderResultVO
param
)
{
bankService
.
orderPayCallback
(
param
.
getMerSeqNo
(),
param
.
getTransSeqNo
(),
param
.
getAmount
(),
param
.
getAmount
(),
param
.
getTransStatus
(),
param
.
getSignNo
());
return
Result
.
ok
();
}
}
performance-web/src/main/java/com/clx/performance/service/impl/thirdparty/nbbank/NbBankServiceImpl.java
浏览文件 @
5fb189cb
...
...
@@ -204,25 +204,47 @@ public class NbBankServiceImpl implements NbBankService {
log
.
info
(
"宁波银行支付回调, merSeqNo:{}, transSeqNo:{}, trxAmt:{}, realTrxAmt:{}, transSeqNo:{}, signNo:{}"
,
merSeqNo
,
transSeqNo
,
trxAmt
,
realTrxAmt
,
transStatus
,
signNo
);
NbBankOrderResultVO
result
=
new
NbBankOrderResultVO
();
if
(
StringUtils
.
equals
(
transStatus
,
"00"
)){
//交易成功
result
.
setTransStatus
(
1
);
}
if
(
StringUtils
.
equals
(
transStatus
,
"01"
)){
//交易失败
result
.
setTransStatus
(
2
);
}
if
(
StringUtils
.
equals
(
transStatus
,
"02"
)){
//交易已受理
result
.
setTransStatus
(
3
);
}
if
(
StringUtils
.
equals
(
transStatus
,
"80"
)){
//订单初始状态
result
.
setTransStatus
(
4
);
}
if
(
StringUtils
.
equals
(
transStatus
,
"90"
)){
//交易不存在
result
.
setTransStatus
(
5
);
}
if
(
StringUtils
.
equals
(
transStatus
,
"99"
)){
//交易超时,须发起交易结果查询
result
.
setTransStatus
(
6
);
}
orderPayCallback
(
merSeqNo
,
transSeqNo
,
trxAmt
,
realTrxAmt
,
result
.
getTransStatus
(),
signNo
);
}
/**
* 银行回调
* @param merSeqNo 商户流水号
* @param transSeqNo 第三方流水号
* @param trxAmt 订单金额分
* @param realTrxAmt 实收金额分
* @param transStatus 交易状态
* @param signNo 转账编码
*/
@Override
public
void
orderPayCallback
(
String
merSeqNo
,
String
transSeqNo
,
Integer
trxAmt
,
Integer
realTrxAmt
,
Integer
transStatus
,
String
signNo
)
{
log
.
info
(
"宁波银行支付回调, merSeqNo:{}, transSeqNo:{}, trxAmt:{}, realTrxAmt:{}, transSeqNo:{}, signNo:{}"
,
merSeqNo
,
transSeqNo
,
trxAmt
,
realTrxAmt
,
transStatus
,
signNo
);
}
/**
...
...
performance-web/src/main/java/com/clx/performance/service/thirdparty/nbbank/NbBankService.java
浏览文件 @
5fb189cb
...
...
@@ -24,5 +24,10 @@ public interface NbBankService {
String
transStatus
,
String
signNo
);
void
orderPayCallback
(
String
merSeqNo
,
String
transSeqNo
,
Integer
trxAmt
,
Integer
realTrxAmt
,
Integer
transStatus
,
String
signNo
);
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论