废弃 ,换标文件上传 ,排车托盘锁粒度
This commit is contained in:
+9
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user