Skip to content

Commit

Permalink
fix(aem): review
Browse files Browse the repository at this point in the history
 - update comment on cell
 - AEM Export table main method updated
  • Loading branch information
xtiannyeto committed Jul 9, 2024
1 parent 2f22857 commit 12a1410
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import fr.gouv.dgampa.rapportnav.domain.entities.mission.nav.action.*

data class AEMIllegalFish(
val nbrOfHourInSea: Int, //4.3.1
val nbrOfPolFishAction: Int, // 4.1.3
val nbrOfTargetedVessel: Int, // 4.1.4
val nbrOfInfraction: Int, // 4.1.5
val nbrOfInfractionWithPV: Int, // 4.1.5
val nbrOfPolFishAction: Int, // 4.3.3
val nbrOfTargetedVessel: Int, // 4.3.4
val nbrOfInfraction: Int, // 4.3.5
val nbrOfInfractionWithPV: Int, // 4.3.6
val nbrOfTowedVessel: Int, // 4.3.8
val quantityOfFish: Int //4.3.9
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ data class AEMTableExport(
private val logger = LoggerFactory.getLogger(AEMTableExport::class.java)

companion object {
fun fromMissionAction(actions: List<MissionActionEntity>): AEMTableExport {
fun fromMissionAction(actions: List<MissionActionEntity?>): AEMTableExport {
val navActions = actions.filterIsInstance<MissionActionEntity.NavAction>().map { it.navAction };
val envActions = actions.filterIsInstance<MissionActionEntity.EnvAction>().map { it.envAction };
val fishActions = actions.filterIsInstance<MissionActionEntity.FishAction>().map { it.fishAction };
Expand Down

0 comments on commit 12a1410

Please sign in to comment.