fix(firstleg): hide void photo download paths
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user