Commit 55b28986 by zhiheng.zhang

开放平台取消订单

parent f0d353d7
......@@ -270,16 +270,19 @@ public class SaasOrderMangerServiceImpl implements OrderManagerService {
if (ObjectUtils.notEqual(verifyResponse.getCode(), ResponseResult.SUCCESS.getCode())) {
return ResponseUtil.error(verifyResponse.getCode());
}
BaseResponse<OrderManagerResponse> baseResponse = new BaseResponse<OrderManagerResponse>();
BaseResponse<OrderManagerResponse> baseResponse = null;
//调用oms拒绝订单
if (Objects.equals(operationType,OperateType.ORDER_REJECT_REFUND.getOpType())) {
if (operationType.equalsIgnoreCase(OperateType.ORDER_REJECT_REFUND.getOpType())) {
baseResponse = this.orderReject(request, orderBean);
}
//调用oms同意退款
if (Objects.equals(operationType , OperateType.ORDER_AGREE_REFUND.getOpType())) {
if (operationType.equalsIgnoreCase(OperateType.ORDER_AGREE_REFUND.getOpType())) {
// 同意退款在支付退款后的退款/退货完成操作
baseResponse = this.orderAgreeRefund(request, orderBean);
}
if(null == baseResponse){
return ResponseUtil.error(ResponseResult.PARTNER_ORDER_CANCEL_ERROR);
}
if(!ObjectUtils.equals(SUCCESS,Integer.valueOf(baseResponse.getCode()))){
emailAlertService.sendEmailAlert("商家取消订单失败", "请求json:" + JSONObject.toJSONString(orderBean) + "返回msg:" + baseResponse.getMessage());
return ResponseUtil.error(ResponseResult.PARTNER_ORDER_CANCEL_ERROR);
......
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