fix: materialize container pallet plans

This commit is contained in:
2026-09-10 15:40:55 +08:00
parent a5db6fbbb6
commit f0b8514890
8 changed files with 321 additions and 25 deletions
@@ -105,6 +105,10 @@ class WarehousePalletBatchServiceTest {
verify(resources).createPallet(org.mockito.ArgumentMatchers.eq(WarehouseResourceService.PUBLIC_RESOURCE_SCOPE),
org.mockito.ArgumentMatchers.eq(WAREHOUSE), saves.capture());
assertThat(saves.getValue().palletCode()).isNull();
assertThat(saves.getValue().palletType()).isEqualTo("WOOD");
assertThat(saves.getValue().capacityCbm()).isEqualByComparingTo("2.0000");
assertThat(saves.getValue().unitPrice()).isEqualByComparingTo("5.00");
assertThat(saves.getValue().remark()).isEqualTo("自动生成");
assertThat(response.items()).extracting(value -> value.palletCode()).containsExactly("PAL-301");
}