Skip to content

Commit

Permalink
订单取消时,如未支付,则不需要进行退款处理
Browse files Browse the repository at this point in the history
  • Loading branch information
chopper711 committed Jul 12, 2021
1 parent b6a5630 commit 3c78a06
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions consumer/src/main/java/cn/lili/event/impl/PaymentExecute.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ public void orderChange(OrderMessage orderMessage) {
if (order.getPayStatus() == PayStatusEnum.UNPAID.name()) {
return;
}

//如果未付款,则不去要退回相关代码执行
if (order.getPayStatus().equals(PayStatusEnum.UNPAID.name())) {
return;
}
PaymentMethodEnum paymentMethodEnum = PaymentMethodEnum.valueOf(order.getPaymentMethod());
//进行退款操作
switch (paymentMethodEnum) {
Expand Down Expand Up @@ -69,7 +72,7 @@ public void orderChange(OrderMessage orderMessage) {
case BANK_TRANSFER:
break;
default:
log.error("订单支付执行异常,订单编号:", orderMessage.getOrderSn());
log.error("订单支付执行异常,订单编号:{}", orderMessage.getOrderSn());
break;
}
break;
Expand Down

0 comments on commit 3c78a06

Please sign in to comment.