记得上下班打卡 | 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
b8f2a50a
Commit
b8f2a50a
authored
Jan 05, 2023
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 pos机扫码 申请退款后 支付宝人工通过接口
parent
d57a4107
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
GoblinStoreBackOrderServiceImpl.java
.../service/impl/manage/GoblinStoreBackOrderServiceImpl.java
+26
-1
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreBackOrderServiceImpl.java
View file @
b8f2a50a
...
...
@@ -5,6 +5,7 @@ import com.liquidnet.commons.lang.util.*;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.SqlMapping
;
import
com.liquidnet.service.base.constant.MQConst
;
import
com.liquidnet.service.dragon.constant.DragonConstant
;
import
com.liquidnet.service.goblin.constant.GoblinStatusConst
;
import
com.liquidnet.service.goblin.dto.vo.*
;
import
com.liquidnet.service.goblin.entity.GoblinBackOrderLog
;
...
...
@@ -39,6 +40,10 @@ public class GoblinStoreBackOrderServiceImpl implements IGoblinStoreBackOrderSer
private
String
synUrl
;
@Value
(
"${liquidnet.service.dragon.urls.refundApply}"
)
private
String
refundApply
;
@Value
(
"${liquidnet.service.order.url-pay.goblinRefundUrl}"
)
private
String
goblinRefundUrl
;
@Value
(
"${liquidnet.service.dragon.urls.refundResult}"
)
private
String
refundApplyCallBack
;
@Override
public
ResponseDto
<
PageInfo
<
GoblinStoreBackOrderListVo
>>
orderBackList
(
Integer
page
,
String
orderBackCode
,
Integer
type
,
String
cst
,
String
cet
,
String
orderCode
,
String
spuName
,
Integer
status
)
{
...
...
@@ -195,7 +200,13 @@ public class GoblinStoreBackOrderServiceImpl implements IGoblinStoreBackOrderSer
backOrderLog
.
getMessage
(),
backOrderLog
.
getOperationName
(),
backOrderLog
.
getStatus
(),
now
)
);
return
ResponseDto
.
success
();
if
(
success
)
{
if
(
orderVo
.
getPaymentType
().
equals
(
DragonConstant
.
REFUND_TYPE_MICROPAY_ALIPAY
))
{
alipayCallBack
(
orderVo
,
backOrderVo
.
getBackCode
());
}
return
ResponseDto
.
success
();
}
return
ResponseDto
.
failure
(
"退款失败:"
+
message
);
}
@Override
...
...
@@ -317,4 +328,18 @@ public class GoblinStoreBackOrderServiceImpl implements IGoblinStoreBackOrderSer
log
.
debug
(
"REFUND DATA = "
+
returnString
);
return
returnString
;
}
private
String
alipayCallBack
(
GoblinStoreOrderVo
orderVo
,
String
refundCode
)
{
MultiValueMap
<
String
,
String
>
params
=
CollectionUtil
.
linkedMultiValueMapStringString
();
params
.
add
(
"callBackUrl"
,
goblinRefundUrl
);
params
.
add
(
"orderCode"
,
orderVo
.
getMasterOrderCode
());
params
.
add
(
"orderRefundCode"
,
refundCode
);
params
.
add
(
"paymentId"
,
orderVo
.
getPaymentId
());
MultiValueMap
<
String
,
String
>
headers
=
CollectionUtil
.
linkedMultiValueMapStringString
();
headers
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
log
.
debug
(
"REFUND CALLBACK params = "
+
params
);
String
returnString
=
HttpUtil
.
post
(
refundApplyCallBack
,
params
,
headers
);
log
.
debug
(
"REFUND CALLBACK DATA = "
+
returnString
);
return
returnString
;
}
}
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