Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
332b37f1
Commit
332b37f1
authored
Aug 25, 2020
by
vega
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:orderSdk:queryRelatedOrderByCode方法改为手动反序列化
parent
0e26f79a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
+19
-1
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
+1
-1
order-application-service/src/test/java/cn.freemud/controller/OrderControllerTest.java
+18
-0
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/OrderServiceImpl.java
View file @
332b37f1
...
@@ -611,7 +611,7 @@ public class OrderServiceImpl implements Orderservice {
...
@@ -611,7 +611,7 @@ public class OrderServiceImpl implements Orderservice {
//查询订单详情
//查询订单详情
QueryRelationOrderByIdResponseDto
queryOrderByIdResponseDto
=
getQueryRelationOrderByIdResponseDto
(
requestVo
.
getTransId
());
QueryRelationOrderByIdResponseDto
queryOrderByIdResponseDto
=
getQueryRelationOrderByIdResponseDto
(
requestVo
.
getTransId
());
if
(
queryOrderByIdResponseDto
.
getData
()
==
null
||
!
Objects
.
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS
,
queryOrderByIdResponseDto
.
getErrcode
()))
{
if
(
queryOrderByIdResponseDto
.
getData
()
==
null
||
!
Objects
.
equals
(
ResponseCodeConstant
.
RESPONSE_SUCCESS
,
queryOrderByIdResponseDto
.
getErrcode
()))
{
return
refundFaileMessage
(
"order query fail"
+
queryOrderByIdResponseDto
);
return
refundFaileMessage
(
"order query fail
"
+
queryOrderByIdResponseDto
);
}
}
OrderBean
orderBean
=
new
OrderBean
();
OrderBean
orderBean
=
new
OrderBean
();
...
...
order-application-service/src/test/java/cn.freemud/controller/OrderControllerTest.java
View file @
332b37f1
...
@@ -173,6 +173,24 @@ public class OrderControllerTest {
...
@@ -173,6 +173,24 @@ public class OrderControllerTest {
}
}
/**
/**
* 退款回调
*/
@Test
public
void
refundNotifyCallback
()
{
RefundNotifyCallbackRequestVo
request
=
new
RefundNotifyCallbackRequestVo
();
request
.
setRefundStatus
(
100
);
request
.
setTransId
(
"null"
);
String
str
=
JSONObject
.
toJSONString
(
request
);
try
{
mockMvc
.
perform
(
post
(
"/order/refundNotifyCallback"
).
content
(
str
).
contentType
(
MediaType
.
APPLICATION_JSON_UTF8
).
accept
(
MediaType
.
APPLICATION_JSON_UTF8
)).
andDo
(
print
()).
andExpect
(
jsonPath
(
"$.code"
).
value
(
"500"
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
/**
* 再来一单
* 再来一单
*/
*/
@Test
@Test
...
...
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