fix: 完善库存跨页选择稳定性
This commit is contained in:
@@ -52,6 +52,7 @@ class IostorinvDtlMapperTest {
|
||||
List<AvailableInventoryRespVO> expanded = service.expandAvailableInventory(expandReqVO);
|
||||
|
||||
assertEquals(2, expanded.size());
|
||||
assertEquals(List.of(1L, 2L), expanded.stream().map(AvailableInventoryRespVO::getGroupId).toList());
|
||||
assertTrue(expanded.stream().allMatch(item -> "BOX-001".equals(item.getVehicleCode())));
|
||||
assertTrue(expanded.stream().allMatch(item -> "STOR-001".equals(item.getStorId())));
|
||||
assertEquals(2, expanded.stream().map(AvailableInventoryRespVO::getPcsn).distinct().count());
|
||||
@@ -75,6 +76,7 @@ class IostorinvDtlMapperTest {
|
||||
|
||||
assertEquals(1L, page.getTotal());
|
||||
assertEquals("PCSN-002", page.getList().get(0).getPcsn());
|
||||
assertEquals(2L, page.getList().get(0).getGroupId());
|
||||
assertEquals("材料一", page.getList().get(0).getMaterialName());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user