Search in sources :

Example 1 with CatchEvolutionDTO

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;
}
Also used : CatchEvolutionDTO(eu.europa.ec.fisheries.ers.service.dto.fishingtrip.CatchEvolutionDTO) FishingActivityEntity(eu.europa.ec.fisheries.ers.fa.entities.FishingActivityEntity)

Aggregations

FishingActivityEntity (eu.europa.ec.fisheries.ers.fa.entities.FishingActivityEntity)1 CatchEvolutionDTO (eu.europa.ec.fisheries.ers.service.dto.fishingtrip.CatchEvolutionDTO)1