未支付不算支付成功
This commit is contained in:
parent
a01ed93aab
commit
1af2c29729
@ -2339,6 +2339,15 @@ public class UnifiedRegistrationService : ITransient
|
||||
_logger.LogInformation("开始取消报名:报名ID={RegistrationId}, 操作人={UserId}, 当前状态={PaymentStatus}",
|
||||
registrationId, operatorUserId, reg.PaymentStatus);
|
||||
|
||||
// 如果是预报名记录(状态5),直接删除
|
||||
if (reg.PaymentStatus == 5)
|
||||
{
|
||||
await DeleteRegistrationAsync(reg);
|
||||
_logger.LogInformation("已删除预报名记录:报名ID={RegistrationId}", registrationId);
|
||||
return true;
|
||||
}
|
||||
|
||||
// 其他状态的记录,更新状态为已取消
|
||||
reg.PaymentStatus = 4;
|
||||
reg.UpdatedTime = DateTime.Now;
|
||||
reg.UpdatedUserId = operatorUserId;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user