|
|
|
@@ -189,7 +189,7 @@ public class WxPayOrderServiceImpl implements WxPayOrderService { |
|
|
|
order.setOrderStatus(EnumOrderStatus.ORDER_STATUS_REFUND_SUCCESS.getCode()); |
|
|
|
wxOrderMapper.updateById(order); |
|
|
|
} |
|
|
|
throw new MallinkException(ErrorCode.PAY_ORDER_PAYING.getCode(),"该订单已经退款,无法支付!"); |
|
|
|
throw new MallinkException(ErrorCode.PAY_ORDER_REFUND.getCode(),"该订单已经退款,无法支付!"); |
|
|
|
}else if (EnumPayStatus.PAY_STATUS_CLOSE.getCode()==wxpaystatus) { |
|
|
|
if (oldRecord.getPayOrderStatus() != EnumPayStatus.PAY_STATUS_CLOSE.getCode()) { |
|
|
|
oldRecord.setPayOrderStatus(EnumPayStatus.PAY_STATUS_CLOSE.getCode()); |
|
|
|
@@ -199,7 +199,7 @@ public class WxPayOrderServiceImpl implements WxPayOrderService { |
|
|
|
order.setOrderStatus(EnumOrderStatus.ORDER_STATUS_OVERTIME_CANCEL.getCode()); |
|
|
|
wxOrderMapper.updateById(order); |
|
|
|
} |
|
|
|
throw new MallinkException(ErrorCode.PAY_ORDER_PAYING.getCode(),"该订单已经关闭,无法支付!"); |
|
|
|
throw new MallinkException(ErrorCode.PAY_ORDER_CLOSED.getCode(),"该订单已经关闭,无法支付!"); |
|
|
|
}else if (EnumPayStatus.PAY_STATUS_REVERSE.getCode()==wxpaystatus) { |
|
|
|
if (oldRecord.getPayOrderStatus() != EnumPayStatus.PAY_STATUS_REVERSE.getCode()) { |
|
|
|
oldRecord.setPayOrderStatus(EnumPayStatus.PAY_STATUS_REVERSE.getCode()); |
|
|
|
@@ -209,7 +209,7 @@ public class WxPayOrderServiceImpl implements WxPayOrderService { |
|
|
|
order.setOrderStatus(EnumOrderStatus.ORDER_STATUS_OVERTIME_CANCEL.getCode()); |
|
|
|
wxOrderMapper.updateById(order); |
|
|
|
} |
|
|
|
throw new MallinkException(ErrorCode.PAY_ORDER_PAYING.getCode(),"该订单已撤销,无法支付!"); |
|
|
|
throw new MallinkException(ErrorCode.PAY_ORDER_REVERSE.getCode(),"该订单已撤销,无法支付!"); |
|
|
|
}else if (EnumPayStatus.PAY_STATUS_WAIT.getCode()==wxpaystatus) { |
|
|
|
throw new MallinkException(ErrorCode.PAY_ORDER_PAYING.getCode(),"该订单支付中,请勿重复支付!"); |
|
|
|
}else if (EnumPayStatus.PAY_STATUS_NOTPAY.getCode()==wxpaystatus || EnumPayStatus.PAY_STATUS_FAIL.getCode()==wxpaystatus) { |
|
|
|
|