线下退款判断错误

This commit is contained in:
lifenlong 2021-07-22 09:17:00 +08:00
parent 79da543d57
commit 0f02a398f6

View File

@ -138,7 +138,7 @@ public class AfterSaleServiceImpl extends ServiceImpl<AfterSaleMapper, AfterSale
throw new ServiceException(ResultCode.AFTER_SALES_NOT_PAY_ERROR);
}
//判断支付方式是否为线上支付
if (order.getPaymentMethod().equals(PaymentMethodEnum.BANK_TRANSFER)) {
if (order.getPaymentMethod().equals(PaymentMethodEnum.BANK_TRANSFER.name())) {
afterSaleApplyVO.setRefundWay(AfterSaleRefundWayEnum.OFFLINE.name());
} else {
afterSaleApplyVO.setRefundWay(AfterSaleRefundWayEnum.ORIGINAL.name());