Skip to content

Commit

Permalink
add verkehrsart to DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
Der-Alex-K committed Apr 8, 2024
1 parent 042fc85 commit ecc1abb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ public class MessstelleAuswertungDTO implements Serializable {
private String mstId;
private String standort;
private List<MessquerschnittAuswertungDTO> messquerschnitte;
private String detektierteVerkehrsarten;
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public interface MessstelleIndex extends ElasticsearchRepository<Messstelle, Str
Page<Messstelle> suggestSearch(String query, Pageable pageable);

List<Messstelle> findAll();

List<Messstelle> findAllBySichtbarDatenportalIsTrue();

Optional<Messstelle> findByMstId(String mstId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
import de.muenchen.dave.domain.elasticsearch.detektor.Messstelle;
import de.muenchen.dave.exceptions.ResourceNotFoundException;
import de.muenchen.dave.repositories.elasticsearch.MessstelleIndex;
import java.util.List;
import java.util.Optional;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

/**
* Die Klasse {@link MessstelleIndexService} holt alle relevanten Messstellen aus MobidaM und
* aktualisiert die in Dave gespeichereten Daten.
Expand Down Expand Up @@ -39,6 +38,7 @@ public Messstelle findByIdOrThrowException(final String messstelleId) {
public List<Messstelle> findAllMessstellen() {
return messstelleIndex.findAll();
}

public List<Messstelle> findAllVisibleMessstellen() {
return messstelleIndex.findAllBySichtbarDatenportalIsTrue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
import de.muenchen.dave.domain.elasticsearch.detektor.Messstelle;
import de.muenchen.dave.domain.mapper.detektor.MessstelleMapper;
import de.muenchen.dave.services.CustomSuggestIndexService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.HashSet;
import java.util.List;
import java.util.Set;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
* Die Klasse {@link MessstelleService} holt alle relevanten Messstellen aus MobidaM und
Expand Down

0 comments on commit ecc1abb

Please sign in to comment.