fix(firstleg): hide void photo download paths

This commit is contained in:
2026-08-14 22:29:50 +08:00
parent b2a093b31b
commit 8aa58a4f72
4 changed files with 33 additions and 6 deletions
@@ -100,8 +100,10 @@ public class ContainerOverviewService {
private PdaSummary pda(ContainerOverviewMapper.PickTaskRow task) {
List<Photo> photos = mapper.photos(task.loadingPlanId()).stream().map(value -> new Photo(value.evidenceId(),
value.tenantId(), value.inboundId(), value.evidenceType(), value.fileId(), value.fileName(),
value.status(), "/api/platform/v1/containers/" + task.containerBookingId() + "/pda/photos/"
+ value.fileId() + "/download", value.uploadedAt())).toList();
value.status(), "ACTIVE".equals(value.status())
? "/api/platform/v1/containers/" + task.containerBookingId() + "/pda/photos/"
+ value.fileId() + "/download"
: null, value.uploadedAt())).toList();
var counts = new LinkedHashMap<String, Integer>();
photos.stream().filter(photo -> "ACTIVE".equals(photo.status()))
.forEach(photo -> counts.merge(photo.evidenceType(), 1, Integer::sum));