fix(lastleg): restore overseas receiving build

This commit is contained in:
2026-08-24 20:14:39 +08:00
parent c93fdc44d5
commit 5edc2fc1bd
4 changed files with 20 additions and 5 deletions
@@ -451,7 +451,7 @@ public class ReceivingContainerService {
.map(ReceivingContainerRequests.SignedPhoto::role).collect(Collectors.toSet());
if (roles.size() != 3 || roles.contains(null)) throw conflict("Each unload photo role is required exactly once");
Set<Long> fileIds = request.photos().stream().map(ReceivingContainerRequests.SignedPhoto::fileId)
.boxed().collect(Collectors.toSet());
.collect(Collectors.toSet());
if (fileIds.size() != 3 || fileIds.stream().anyMatch(value -> value == null || value <= 0)) {
throw conflict("Unload photo file IDs must be positive and unique");
}