-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ITEM-388 : FEAT : Ajout statistiques demandes de suppression
Refactor batch génération statistiques
- Loading branch information
1 parent
af6b1a0
commit daae38f
Showing
5 changed files
with
102 additions
and
31 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
13 changes: 13 additions & 0 deletions
13
batch/src/main/java/fr/abes/item/batch/webstats/NbExemplairesSuppTraitesDto.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,13 @@ | ||
package fr.abes.item.batch.webstats; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@NoArgsConstructor | ||
@Getter | ||
@Setter | ||
public class NbExemplairesSuppTraitesDto { | ||
private String rcr; | ||
private Integer nbExemplaires; | ||
} |
16 changes: 16 additions & 0 deletions
16
batch/src/main/java/fr/abes/item/batch/webstats/NbExemplairesSuppTraitesMapper.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,16 @@ | ||
package fr.abes.item.batch.webstats; | ||
|
||
import org.springframework.jdbc.core.RowMapper; | ||
|
||
import java.sql.ResultSet; | ||
import java.sql.SQLException; | ||
|
||
public class NbExemplairesSuppTraitesMapper implements RowMapper<NbExemplairesSuppTraitesDto> { | ||
@Override | ||
public NbExemplairesSuppTraitesDto mapRow(ResultSet resultSet, int i) throws SQLException { | ||
NbExemplairesSuppTraitesDto nbExemp = new NbExemplairesSuppTraitesDto(); | ||
nbExemp.setRcr(resultSet.getString("RCR")); | ||
nbExemp.setNbExemplaires(resultSet.getInt("count")); | ||
return nbExemp; | ||
} | ||
} |
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