记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
1d1bcbb7
Commit
1d1bcbb7
authored
May 27, 2024
by
zhoujianping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.支付宝小程序退款接口增加退款日志
parent
a48cc5bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
DragonOrderRefundsServiceImpl.java
...ce/dragon/service/impl/DragonOrderRefundsServiceImpl.java
+4
-1
No files found.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/dragon/service/impl/DragonOrderRefundsServiceImpl.java
View file @
1d1bcbb7
...
@@ -543,6 +543,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -543,6 +543,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
//支付宝退款接口
//支付宝退款接口
public
DragonRefundChannelDto
aliPayRefund
(
String
orderRefundId
,
String
refundCode
,
String
code
,
String
reason
,
BigDecimal
price
,
String
paymentId
,
String
paymentType
,
LocalDateTime
nowTime
)
{
public
DragonRefundChannelDto
aliPayRefund
(
String
orderRefundId
,
String
refundCode
,
String
code
,
String
reason
,
BigDecimal
price
,
String
paymentId
,
String
paymentType
,
LocalDateTime
nowTime
)
{
log
.
info
(
"支付宝退款入参orderRefundId={},refundCode={},code={},reason={},price={},paymentId={},paymentType={}"
,
orderRefundId
,
refundCode
,
code
,
reason
,
price
,
paymentId
,
paymentType
);
String
refundStatus
;
String
refundStatus
;
DragonRefundChannelDto
channelDto
=
new
DragonRefundChannelDto
();
DragonRefundChannelDto
channelDto
=
new
DragonRefundChannelDto
();
RefundContentDto
contentDto
=
new
RefundContentDto
();
RefundContentDto
contentDto
=
new
RefundContentDto
();
...
@@ -563,7 +564,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -563,7 +564,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
httpClient
=
PayAlipayUtils
.
getInstance
().
getHttpClient
();
httpClient
=
PayAlipayUtils
.
getInstance
().
getHttpClient
();
}
}
AlipayTradeRefundResponse
response
=
httpClient
.
execute
(
request
);
AlipayTradeRefundResponse
response
=
httpClient
.
execute
(
request
);
log
.
info
(
"支付宝退款AlipayTradeRefundResponse={}"
,
response
);
log
.
info
(
"支付宝退款AlipayTradeRefundResponse={}"
,
response
.
getBody
()
);
if
(
response
.
getFundChange
()
==
null
||
response
.
getFundChange
().
equals
(
"N"
))
{
if
(
response
.
getFundChange
()
==
null
||
response
.
getFundChange
().
equals
(
"N"
))
{
try
{
try
{
refundStatus
=
DragonConstant
.
RefundStatusEnum
.
STATUS_ERROR
.
getCode
();
refundStatus
=
DragonConstant
.
RefundStatusEnum
.
STATUS_ERROR
.
getCode
();
...
@@ -605,12 +606,14 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -605,12 +606,14 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
);
);
try
{
try
{
String
refundAt
=
""
;
String
refundAt
=
""
;
log
.
info
(
"支付宝退款FundChange={}"
,
response
.
getFundChange
());
if
(
response
.
getFundChange
().
equals
(
"Y"
))
{
if
(
response
.
getFundChange
().
equals
(
"Y"
))
{
refundStatus
=
DragonConstant
.
RefundStatusEnum
.
STATUS_REFUNDED
.
getCode
();
refundStatus
=
DragonConstant
.
RefundStatusEnum
.
STATUS_REFUNDED
.
getCode
();
refundAt
=
DateUtil
.
format
(
response
.
getGmtRefundPay
(),
DateUtil
.
Formatter
.
yyyyMMddHHmmss
);
refundAt
=
DateUtil
.
format
(
response
.
getGmtRefundPay
(),
DateUtil
.
Formatter
.
yyyyMMddHHmmss
);
}
else
{
}
else
{
refundStatus
=
DragonConstant
.
RefundStatusEnum
.
STATUS_REFUNDING
.
getCode
();
refundStatus
=
DragonConstant
.
RefundStatusEnum
.
STATUS_REFUNDING
.
getCode
();
}
}
log
.
info
(
"支付宝退款成功code={},refundStatus={}"
,
code
,
refundStatus
);
mqHandleUtil
.
sendMySqlRedis
(
mqHandleUtil
.
sendMySqlRedis
(
SqlMapping
.
get
(
"dragon_order_refund_success.update"
),
SqlMapping
.
get
(
"dragon_order_refund_success.update"
),
new
Object
[]{
nowTime
,
refundAt
,
refundStatus
,
code
},
new
Object
[]{
nowTime
,
refundAt
,
refundStatus
,
code
},
...
...
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