feat:退优惠券

This commit is contained in:
dzc committed 2026-05-27 10:41:08 +08:00
1 parent 0c6d59a062
commit 93326936c3
1 file changed
+3 -1
@@ -644,7 +644,9 @@ public class HardAfterSaleServiceImpl extends ServiceImpl<HardAfterSaleMapper, H
// 执行退款
getSelf().refund(saveObj.getId());
// 退优惠券
actCouponCancelService.remoteReturn(Long.valueOf(order.getCouponRecordId()));
if (ObjectUtil.isAllNotEmpty(order.getCouponPrice(), order.getCouponRecordId())) {
actCouponCancelService.remoteReturn(Long.valueOf(order.getCouponRecordId()));
}
return true;
}