diff --git a/internal/data/repoimpl/order.go b/internal/data/repoimpl/order.go index eab59c3..d43d094 100644 --- a/internal/data/repoimpl/order.go +++ b/internal/data/repoimpl/order.go @@ -277,6 +277,7 @@ func (p *OrderRepoImpl) Success(ctx context.Context, id uint64, voucherNo string Updates(model.Order{ Status: vo.OrderStatusSuccess.GetValue(), VoucherNo: voucherNo, + Remark: "成功", ReceiveSuccessTime: &now, UpdateTime: &now, }) @@ -298,6 +299,7 @@ func (p *OrderRepoImpl) Available(ctx context.Context, id uint64) error { }). Updates(model.Order{ Status: vo.OrderStatusSuccess.GetValue(), + Remark: "成功,领取时间重置", ReceiveSuccessTime: &now, // 领取成功时间重置 UpdateTime: &now, }) @@ -345,6 +347,7 @@ func (p *OrderRepoImpl) Used(ctx context.Context, id uint64) error { }). Updates(model.Order{ Status: vo.OrderStatusUse.GetValue(), + Remark: "核销", LastUseTime: &now, UpdateTime: &now, }) @@ -366,6 +369,7 @@ func (p *OrderRepoImpl) NotifyUsed(ctx context.Context, id uint64, transactionId Updates(model.Order{ Status: vo.OrderStatusUse.GetValue(), TransactionId: transactionId, + Remark: "微信回调核销", LastUseTime: &now, UpdateTime: &now, }) @@ -386,6 +390,7 @@ func (p *OrderRepoImpl) Expired(ctx context.Context, id uint64) error { }). Updates(model.Order{ Status: vo.OrderStatusExpired.GetValue(), + Remark: "过期", UpdateTime: &now, })