This commit is contained in:
2026-09-16 17:49:27 +08:00
parent 8488d4d989
commit 053e59bec1
@@ -913,6 +913,9 @@ class SmartLoadingServiceTest {
when(repository.activePalletItem(eq(1L), eq(801L), anyLong())).thenReturn(null);
when(repository.inbound(9L, 10L)).thenReturn(inbound(9L, 10L));
when(dropshipPallets.sealedPalletLines(801L)).thenReturn(List.of(first, second));
when(cargoClient.detail(anyString(), eq(9L), eq(30L), eq(21L))).thenReturn(
ApiResponse.success(new OrderCargoClient.CargoBinding(21L, 30L, 1, "货物 2", 5,
new BigDecimal("10"), new BigDecimal("2"))));
doReturn(List.of(
new DropshipPalletizationMapper.PalletMetrics(801L, 20, new BigDecimal("197"),
new BigDecimal("180"), new BigDecimal("3.365"))))