退款订单状态

This commit is contained in:
马梓彭 2026-08-06 23:38:04 +08:00
parent 8d812bf3df
commit 95325a7fa6

View File

@ -3858,8 +3858,8 @@ public class UnifiedRegistrationService : ITransient
OriginalAmount = order.ActualAmount,
ActualAmount = actualRefundAmount,
DiscountAmount = 0,
// 实退 0 记为"已取消",与真实退款区分,避免对账时把 0 元单误读为已退款
OrderStatus = actualRefundAmount > 0 ? OrderStatus.Refunded : OrderStatus.Cancelled,
// 统一用 Refunded,实退 0 的留痕单也要能被列表查到:
OrderStatus = OrderStatus.Refunded,
PaymentTime = now,
Remark = input.CancelReason,
CreatedTime = now,