use of eu.europa.ec.fisheries.ers.service.dto.fishingtrip.CatchEvolutionDTO in project UVMS-ActivityModule-APP by UnionVMS.
the class FishingTripServiceBean method retrieveCatchEvolutionForFishingTrip.
@Override
public CatchEvolutionDTO retrieveCatchEvolutionForFishingTrip(String fishingTripId) throws ServiceException {
CatchEvolutionDTO catchEvolution = new CatchEvolutionDTO();
List<FishingActivityEntity> fishingActivities = fishingActivityDao.getFishingActivityListForFishingTrip(fishingTripId, null);
List<Object[]> faCatches = faCatchDao.findFaCatchesByFishingTrip(fishingTripId);
catchEvolution.setTripDetails(getTripWidgetDto(fishingActivities.get(0), fishingTripId));
catchEvolution.setCatchEvolutionProgress(prepareCatchEvolutionProgress(fishingActivities));
return catchEvolution;
}
Aggregations