feat(order): 统一网站自交接订单24小时自动完成倒计时

This commit is contained in:
yml
2026-11-30 17:05:49 +08:00
parent 295c88dd2f
commit 2992885a6d
32 changed files with 996 additions and 23 deletions
@@ -0,0 +1,12 @@
-- +goose Up
-- 新增网站自交接订单统一自动交接截止时间;仅对功能上线后的新付款非代管订单写入,历史订单保持 NULL 不受影响。
ALTER TABLE rental_orders
ADD COLUMN handoff_deadline_at DATETIME NULL COMMENT '统一自动交接截止时间' AFTER handoff_started_at,
ADD INDEX idx_rental_orders_handoff_deadline (status, handoff_deadline_at);
-- +goose Down
ALTER TABLE rental_orders
DROP INDEX idx_rental_orders_handoff_deadline,
DROP COLUMN handoff_deadline_at;