fix: converge dropship development schema

This commit is contained in:
2026-09-08 17:38:43 +08:00
parent 0a9c798580
commit 751bdbf880
3 changed files with 145 additions and 0 deletions
@@ -72,5 +72,11 @@ public interface OrderCargoClient {
this(cargoId, orderId, itemNo, cargoName, null,
packageCount, null, lengthCm, widthCm, heightCm, null);
}
public CargoLabelBinding(Long cargoId, Long orderId, Integer itemNo, String cargoName,
String skuNo, Integer packageCount, BigDecimal lengthCm,
BigDecimal widthCm, BigDecimal heightCm, String shipmentId) {
this(cargoId, orderId, itemNo, cargoName, skuNo,
packageCount, null, lengthCm, widthCm, heightCm, shipmentId);
}
}
}
@@ -38,5 +38,10 @@ class DropshipPalletizationSqlContractTest {
.doesNotContain("CREATE TABLE IF NOT EXISTS fl_loading_work_pallet (")
.doesNotContain("CREATE TABLE IF NOT EXISTS fl_loading_work_pallet_carton (");
}
assertThat(unified)
.contains("CREATE PROCEDURE converge_dropship_palletization_schema()")
.contains("CHANGE COLUMN operation_id count_operation_id")
.contains("DROP INDEX uk_loading_item_plan_detail")
.contains("ADD UNIQUE KEY uk_loading_item_plan_assignment (loading_plan_id,active_assignment_key)");
}
}