废弃 ,换标文件上传 ,排车托盘锁粒度

This commit is contained in:
2026-09-14 16:49:00 +08:00
parent 60ebc2e376
commit 78bbd69a26
23 changed files with 443 additions and 21 deletions
@@ -412,6 +412,15 @@ class DispatchServiceTest {
verify(locks, org.mockito.Mockito.times(1)).selectList(any());
}
@Test
void receivedPalletUsesPhysicalPalletAsDispatchLockIdentity() {
DispatchPalletCandidate mergedInboundOrder = candidate(10L, 900L, "ONT8");
DispatchPalletCandidate plannedOnly = candidate(11L, null, "ONT8");
assertEquals("RECEIVED:900", mergedInboundOrder.sourcePalletKey());
assertEquals("PLAN:11", plannedOnly.sourcePalletKey());
}
private DispatchPalletCandidate candidate(long planPalletId, Long warehousePalletId, String destination) {
return candidate(planPalletId, warehousePalletId, destination, 12);
}