fix(warehouse-overseas): keep confirmed pallet locks active

This commit is contained in:
2026-09-09 00:11:46 +08:00
parent 93704a24ce
commit cf8053b7ce
4 changed files with 45 additions and 7 deletions
@@ -148,9 +148,6 @@ public class WarehousePalletBatchService {
} else if (!Objects.equals(binding.getPalletId(), item.getPalletId())) {
throw conflict("Inbound plan pallet business key is already bound to another pallet");
}
if (lockRecords.close(lock, "CONFIRMED") != 1) {
throw conflict("Inbound plan pallet reservation changed concurrently");
}
item.setStatus("CONFIRMED");
item.setUpdatedAt(LocalDateTime.now());
items.updateById(item);