Commit 332b37f1 by vega

fix:orderSdk:queryRelatedOrderByCode方法改为手动反序列化

parent 0e26f79a
......@@ -611,7 +611,7 @@ public class OrderServiceImpl implements Orderservice {
//查询订单详情
QueryRelationOrderByIdResponseDto queryOrderByIdResponseDto = getQueryRelationOrderByIdResponseDto(requestVo.getTransId());
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();
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment