Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop dans main #11

Merged
merged 7 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions batch/src/main/java/fr/abes/item/BatchConfiguration.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package fr.abes.item;

import fr.abes.item.constant.Constant;
import fr.abes.item.entities.item.DemandeExemp;
import fr.abes.item.entities.item.DemandeModif;
import fr.abes.item.entities.item.DemandeRecouv;
import fr.abes.item.restart.SelectJobsToRestartTasklet;
import fr.abes.item.service.service.ServiceProvider;
import fr.abes.item.traitement.*;
import fr.abes.item.traitement.model.LigneFichierDtoExemp;
Expand Down Expand Up @@ -118,13 +114,6 @@ public Job jobTraiterLigneFichierRecouv(ItemReader itemReader, ItemProcessor ite
.build().build();
}

// Job de relance des Jobs en état Unknown
@Bean
public Job jobRelanceJobsUnknown() {
return jobs.get(Constant.SPRING_BATCH_JOB_RESTART_JOBS_UNKNOW).incrementer(incrementer())
.start(stepSelectJobsToRestart())
.build();
}

// Job d'export des statistiques mensuelles
@Bean
Expand Down Expand Up @@ -253,13 +242,6 @@ public Step stepExportStatistiques() {
.build();
}

@Bean
public Step stepSelectJobsToRestart() {
return stepBuilderFactory
.get("stepSelectJobsToRestart").allowStartIfComplete(true)
.tasklet(selectJobsToRestartTasklet())
.build();
}

//Steps d'archivage automatique des demandes
@Bean
Expand Down Expand Up @@ -352,9 +334,6 @@ public AuthentifierSurSudocTasklet authentifierSurSudocTasklet()
@Bean
public ExportStatistiquesTasklet exportStatistiquesTasklet() { return new ExportStatistiquesTasklet(); }

@Bean
public SelectJobsToRestartTasklet selectJobsToRestartTasklet() { return new SelectJobsToRestartTasklet(jdbcTemplate, service); }


//Archivage automatique des demandes
@Bean
Expand Down
13 changes: 0 additions & 13 deletions batch/src/main/java/fr/abes/item/restart/JobExecutionDto.java

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions batch/src/main/java/fr/abes/item/restart/StepExecutionDto.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void beforeStep(StepExecution stepExecution) {
*/
@Override
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
log.warn(Constant.ENTER_EXECUTE_FROM_GENEREFICHIER);
log.info(Constant.ENTER_EXECUTE_FROM_GENEREFICHIER);

try {
String nomFichier = this.genererFichier(); //NOM FICHIER DEMANDE GENERE
Expand Down Expand Up @@ -144,7 +144,6 @@ private String genererFichier() throws IOException, FileTypeException, QueryToSu
case EXEMP:
DemandeExemp demandeExemp = (DemandeExemp) demande;
LigneFichierDtoExemp ligneFichierDtoExemp = new LigneFichierDtoExemp((LigneFichierExemp) ligne);
log.warn(ligneFichierDtoExemp.getIndexRecherche());
ligneFichierDtoExemp.setRequete(getServiceProvider().getDemandeExemp().getQueryToSudoc(demandeExemp.getIndexRecherche().getCode(), demandeExemp.getTypeExemp().getLibelle(), ligneFichierDtoExemp.getIndexRecherche().split(";")));
out.println(ligneFichierDtoExemp.getValeurToWriteInFichierResultat(demande, nbPpnInFileResult));
break;
Expand Down
Loading
Loading