This commit is contained in:
2026-08-06 18:14:29 +08:00
parent 6e9739826c
commit d2e3fef8f8
14 changed files with 1623 additions and 144 deletions
@@ -38,18 +38,4 @@ class InboundWorkflowSqlContractTest {
.contains("SET warehouse_resource_tenant_id = 0")
.contains("MODIFY COLUMN warehouse_resource_tenant_id BIGINT UNSIGNED NOT NULL");
}
@Test
@DisplayName("船司价格存量迁移固定到平台作用域并拒绝冲突")
void shouldMigrateCarrierRatesToPublicScopeWithoutOverwritingConflicts() throws Exception {
String migration = new ClassPathResource("db/phase2-fba-pricing-migration.sql")
.getContentAsString(StandardCharsets.UTF_8);
assertThat(migration)
.contains("phase2_fba_migrate_carrier_rate_scope")
.contains("GROUP BY rate_code, rate_version")
.contains("公共匹配维度存在有效期重叠")
.contains("SET tenant_id = 0")
.contains("WHERE tenant_id <> 0");
}
}