退款逻辑整理

This commit is contained in:
2023-07-27 17:05:50 +08:00
parent 2b343c36b7
commit a1cfc898be
3 changed files with 22 additions and 10 deletions

View File

@@ -349,9 +349,9 @@ public class OrderService {
// 退款有两种情况 1-订单结算退款 2-用户余额退款
String refundType = dto.getRefundType();
if (StringUtils.equals(refundType, "1")) {
orderBasicInfoService.refundForOrderWithAdapay(dto);
orderBasicInfoService.refundOrderWithAdapay(dto);
} else if (StringUtils.equals(refundType, "2")) {
orderBasicInfoService.refundForBalanceWithAdapay(dto);
orderBasicInfoService.refundBalanceWithAdapay(dto);
} else {
log.warn("没有找到退款处理逻辑");
}