generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from it-at-m/sprint
Vorbereitung Demo 03.04.2024
- Loading branch information
Showing
47 changed files
with
2,818 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
.../java/de/muenchen/dave/domain/dtos/laden/messwerte/BelastungsplanMessquerschnitteDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c): it@M - Dienstleister für Informations- und Telekommunikationstechnik | ||
* der Landeshauptstadt München, 2020 | ||
*/ | ||
package de.muenchen.dave.domain.dtos.laden.messwerte; | ||
|
||
import java.io.Serializable; | ||
import java.math.BigDecimal; | ||
import java.util.List; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class BelastungsplanMessquerschnitteDTO implements Serializable { | ||
private List<LadeBelastungsplanMessquerschnittDataDTO> ladeBelastungsplanMessquerschnittDataDTOList; | ||
private String strassenname; | ||
private String mstId; | ||
private Integer stadtbezirkNummer; | ||
private Integer totalKfz; | ||
private Integer totalSv; | ||
private Integer totalGv; | ||
private Integer totalRad; | ||
private BigDecimal totalPercentSv; | ||
private BigDecimal totalPercentGv; | ||
} |
23 changes: 23 additions & 0 deletions
23
...e/muenchen/dave/domain/dtos/laden/messwerte/LadeBelastungsplanMessquerschnittDataDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c): it@M - Dienstleister für Informations- und Telekommunikationstechnik | ||
* der Landeshauptstadt München, 2020 | ||
*/ | ||
package de.muenchen.dave.domain.dtos.laden.messwerte; | ||
|
||
import java.io.Serializable; | ||
import java.math.BigDecimal; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class LadeBelastungsplanMessquerschnittDataDTO implements Serializable { | ||
|
||
private String mqId; | ||
private Integer sumKfz; | ||
private Integer sumSv; | ||
private Integer sumGv; | ||
private Integer sumRad; | ||
private String direction; | ||
|
||
private BigDecimal percentSv; | ||
private BigDecimal percentGV; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/de/muenchen/dave/domain/dtos/messstelle/FahrzeugOptionsDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c): it@M - Dienstleister für Informations- und Telekommunikationstechnik | ||
* der Landeshauptstadt München, 2020 | ||
*/ | ||
package de.muenchen.dave.domain.dtos.messstelle; | ||
|
||
import java.io.Serializable; | ||
import javax.validation.constraints.NotNull; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class FahrzeugOptionsDTO implements Serializable { | ||
|
||
@NotNull | ||
private boolean kraftfahrzeugverkehr; | ||
@NotNull | ||
private boolean schwerverkehr; | ||
@NotNull | ||
private boolean gueterverkehr; | ||
@NotNull | ||
private boolean schwerverkehrsanteilProzent; | ||
@NotNull | ||
private boolean gueterverkehrsanteilProzent; | ||
@NotNull | ||
private boolean radverkehr; | ||
@NotNull | ||
private boolean fussverkehr; | ||
@NotNull | ||
private boolean lastkraftwagen; | ||
@NotNull | ||
private boolean lastzuege; | ||
@NotNull | ||
private boolean busse; | ||
@NotNull | ||
private boolean kraftraeder; | ||
@NotNull | ||
private boolean personenkraftwagen; | ||
@NotNull | ||
private boolean lieferwagen; | ||
} |
51 changes: 51 additions & 0 deletions
51
src/main/java/de/muenchen/dave/domain/dtos/messstelle/MessstelleOptionsDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright (c): it@M - Dienstleister für Informations- und Telekommunikationstechnik | ||
* der Landeshauptstadt München, 2020 | ||
*/ | ||
package de.muenchen.dave.domain.dtos.messstelle; | ||
|
||
import de.muenchen.dave.domain.enums.ZaehldatenIntervall; | ||
import de.muenchen.dave.domain.enums.Zeitblock; | ||
import java.io.Serializable; | ||
import java.time.LocalDate; | ||
import java.util.List; | ||
import java.util.Set; | ||
import javax.validation.constraints.NotNull; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class MessstelleOptionsDTO implements Serializable { | ||
|
||
@NotNull | ||
private List<LocalDate> zeitraum; | ||
|
||
@NotNull | ||
private FahrzeugOptionsDTO fahrzeuge; | ||
|
||
@NotNull | ||
private String zeitauswahl; | ||
|
||
@NotNull | ||
private Zeitblock zeitblock; | ||
|
||
private String tagesTyp; | ||
|
||
@NotNull | ||
private ZaehldatenIntervall intervall; | ||
|
||
@NotNull | ||
private Set<String> messquerschnittIds; | ||
|
||
// Belastungsplan | ||
@NotNull | ||
private Boolean werteHundertRunden; | ||
// Listenausgabe | ||
@NotNull | ||
private Boolean stundensumme; | ||
@NotNull | ||
private Boolean blocksumme; | ||
@NotNull | ||
private Boolean tagessumme; | ||
@NotNull | ||
private Boolean spitzenstunde; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/main/java/de/muenchen/dave/domain/mapper/DatentabellePdfMessstelleMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package de.muenchen.dave.domain.mapper; | ||
|
||
import de.muenchen.dave.domain.dtos.laden.messwerte.LadeMesswerteDTO; | ||
import de.muenchen.dave.domain.dtos.messstelle.FahrzeugOptionsDTO; | ||
import de.muenchen.dave.domain.pdf.helper.DatentabellePdfZaehldaten; | ||
import de.muenchen.dave.domain.pdf.helper.DatentabellePdfZaehldatum; | ||
import java.util.List; | ||
import org.apache.commons.lang3.StringUtils; | ||
import org.mapstruct.AfterMapping; | ||
import org.mapstruct.Mapper; | ||
import org.mapstruct.Mapping; | ||
import org.mapstruct.MappingTarget; | ||
import org.mapstruct.Mappings; | ||
|
||
/** | ||
* Mapper wird benötigt, da Mustache nicht mit @JsonGetter umgehen kann. | ||
* Mustache ist eine Sprache für Templates aus denen die für die PDF benötigten HTML Strings | ||
* entstehen. | ||
*/ | ||
@Mapper(componentModel = "spring") | ||
public interface DatentabellePdfMessstelleMapper { | ||
|
||
String UHRZEIT_23_59 = "23:59"; | ||
String UHRZEIT_24_00 = "24:00"; | ||
|
||
@Mappings({ | ||
@Mapping(target = "endeUhrzeit", source = "dto.endeUhrzeit", dateFormat = "HH:mm"), | ||
@Mapping(target = "startUhrzeit", source = "dto.startUhrzeit", dateFormat = "HH:mm"), | ||
}) | ||
DatentabellePdfZaehldatum ladeMesswerteDTO2bean(LadeMesswerteDTO dto); | ||
|
||
@AfterMapping | ||
default void ladeMesswerteDTO2beanAfterMapping(@MappingTarget DatentabellePdfZaehldatum bean, LadeMesswerteDTO dto) { | ||
if (StringUtils.equals(bean.getEndeUhrzeit(), UHRZEIT_23_59)) { | ||
bean.setEndeUhrzeit(UHRZEIT_24_00); | ||
} | ||
} | ||
|
||
List<DatentabellePdfZaehldatum> ladeMesswerteDTOList2beanList(List<LadeMesswerteDTO> LadeMesswerteDTOList); | ||
|
||
@Mapping(target = "activeTabsFahrzeugtypen", ignore = true) | ||
@Mapping(target = "activeTabsFahrzeugklassen", ignore = true) | ||
@Mapping(target = "activeTabsAnteile", ignore = true) | ||
@Mapping(target = "showPkwEinheiten", ignore = true) | ||
@Mapping(target = "zaehldatenList", ignore = true) | ||
@Mapping(target = "showPersonenkraftwagen", source = "personenkraftwagen") | ||
@Mapping(target = "showLastkraftwagen", source = "lastkraftwagen") | ||
@Mapping(target = "showLastzuege", source = "lastzuege") | ||
@Mapping(target = "showLieferwagen", source = "lieferwagen") | ||
@Mapping(target = "showBusse", source = "busse") | ||
@Mapping(target = "showKraftraeder", source = "kraftraeder") | ||
@Mapping(target = "showRadverkehr", source = "radverkehr") | ||
@Mapping(target = "showFussverkehr", source = "fussverkehr") | ||
@Mapping(target = "showKraftfahrzeugverkehr", source = "kraftfahrzeugverkehr") | ||
@Mapping(target = "showSchwerverkehr", source = "schwerverkehr") | ||
@Mapping(target = "showGueterverkehr", source = "gueterverkehr") | ||
@Mapping(target = "showSchwerverkehrsanteilProzent", source = "schwerverkehrsanteilProzent") | ||
@Mapping(target = "showGueterverkehrsanteilProzent", source = "gueterverkehrsanteilProzent") | ||
DatentabellePdfZaehldaten fahrzeugOptionsToDatentabellePdfZaehldaten(final FahrzeugOptionsDTO options); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/de/muenchen/dave/domain/pdf/assets/MessstelleDatatableAsset.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package de.muenchen.dave.domain.pdf.assets; | ||
|
||
import de.muenchen.dave.domain.dtos.messstelle.MessstelleOptionsDTO; | ||
import de.muenchen.dave.domain.pdf.helper.DatentabellePdfZaehldaten; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class MessstelleDatatableAsset extends BaseAsset { | ||
|
||
private DatentabellePdfZaehldaten datentabelleZaehldaten; | ||
|
||
private String randomTableId; | ||
|
||
private String text; | ||
|
||
private MessstelleOptionsDTO options; | ||
|
||
private String mstId; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.