Repository navigation
feat(reservation): 渠道全额退款后自动取消未开始预约 - #42
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
渠道全额退款回调仅在处理时刻早于 startTime 时,将 PAID 预约转为 CANCELLED 并释放时段;已开始(含精确边界)和已结束的 PAID 状态及版本号不变。
规则集中在 Reservation.cancelOnFullRefundIfNotStarted(now),回调传入 Instant.now();REFUNDING 退清后始终关闭,部分退款与重放保持原行为,锁顺序保持 Equipment → Reservation → PaymentOrder。
边界由实体纯单测直接传 now 验证,集成回归覆盖时段释放、已开始/已结束、重放和 SQL 锁序;pom.xml 与 main 一致,无静态时间 mock 和 javaagent,README、注释及 AGENTS.md 已同步。
本地验证:相关 25 项回归通过;verify 共 259 项,242 项通过、17 项因缺少 Docker/RabbitMQ 跳过,提交信息检查通过。