From 5f7df21f9c4551e7b7bb210c964130d1aac2b1de Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Sat, 26 Sep 2026 17:54:19 +0800 Subject: [PATCH] fix(firstleg): include receipt version in confirmation idempotency --- .../customs/container/service/ContainerCustomsService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firstleg/src/main/java/com/baiyue/firstleg/customs/container/service/ContainerCustomsService.java b/firstleg/src/main/java/com/baiyue/firstleg/customs/container/service/ContainerCustomsService.java index 6a208ec24..e2fd3f213 100644 --- a/firstleg/src/main/java/com/baiyue/firstleg/customs/container/service/ContainerCustomsService.java +++ b/firstleg/src/main/java/com/baiyue/firstleg/customs/container/service/ContainerCustomsService.java @@ -232,7 +232,7 @@ public class ContainerCustomsService { public ContainerView confirmReceipt(long tenantId, long documentId, long operatorId, String operatorName, String key, int expectedVersion, boolean confirm, String reason) { String action = (confirm ? "CONFIRM_CUSTOMS_RECEIPT_" : "REJECT_CUSTOMS_RECEIPT_") + documentId; - String requestHash = hash(action, confirm, reason); + String requestHash = hash(action, expectedVersion, confirm, reason); CommandRow replay = claim(operatorId, action, key, requestHash); if (replay != null) { DocumentRow source = requiredDocument(documentId);