feat(consignment): 关闭自动匹配仍可人工指定,匹配日志记录配置快照

- off 模式文案改为「关闭自动匹配(仍可人工指定)」,手动匹配弹窗增加警示
- 候选接口返回 matchingMode/profileVersionId/exactOnly
- 匹配日志新增 profile_version_id/matching_mode/exact_only 快照(迁移153)
- 修正拼单份额测试为库存售价口径(3×6000×95%=17100)
- 补 off 全链路、模式切换、并发占库、多数量拆分 E2E
This commit is contained in:
2026-11-09 12:19:53 +08:00
parent 01c2517f29
commit 75a5ee8192
7 changed files with 440 additions and 25 deletions
@@ -0,0 +1,14 @@
-- 153_consignment_match_log_snapshot.sql
-- 匹配日志快照化:记录匹配发生时生效的寄卖配置版本与匹配策略,
-- 便于配置改版后还原当时的判定依据(profileId 已由 147 提供)。
ALTER TABLE consignment_match_logs
ADD COLUMN IF NOT EXISTS profile_version_id BIGINT,
ADD COLUMN IF NOT EXISTS matching_mode TEXT,
ADD COLUMN IF NOT EXISTS exact_only BOOLEAN;
COMMENT ON COLUMN consignment_match_logs.profile_version_id IS
'匹配发生时生效的寄卖配置版本 ID(consignment_profile_versions.id)';
COMMENT ON COLUMN consignment_match_logs.matching_mode IS
'匹配发生时生效的匹配模式快照:off / manual / auto';
COMMENT ON COLUMN consignment_match_logs.exact_only IS
'匹配发生时生效的 exactOnly 开关快照';