Skip to content

Commit

Permalink
Merge pull request #62 from abes-esr/ITEM-295-le-shortname-du-rcr-ne-…
Browse files Browse the repository at this point in the history
…se-met-pas-a-jour-lors-dune-modification-du-rcr-a-letape-1-sur-le-front

FEAT ITEM-295-le-shortname-du-rcr-ne-se-met-pas-a-jour-lors-dune-modi…
  • Loading branch information
pierre-maraval authored Oct 18, 2024
2 parents 7827987 + 939a2e3 commit 1825107
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public interface IDemandeService {

Demande creerDemande(String rcr, Integer userNum);

void modifierShortNameDemande(Demande demande);

Demande archiverDemande(Demande demande) throws DemandeCheckingException;

void deleteById(Integer id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -751,4 +751,9 @@ public Demande archiverDemande(Demande demande) throws DemandeCheckingException
ligneFichierService.deleteByDemande(demandeExemp);
return changeState(demandeExemp, Constant.ETATDEM_ARCHIVEE);
}

@Override
public void modifierShortNameDemande(Demande demande) {
setIlnShortNameOnDemande(demande);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -586,4 +586,9 @@ public Demande majTraitement(Integer demandeId, Integer traitementId) {
}
return null;
}

@Override
public void modifierShortNameDemande(Demande demande) {
setIlnShortNameOnDemande(demande);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,9 @@ public List<DemandeRecouv> getDemandesToDelete() {
return listeDemandes;
return null;
}

@Override
public void modifierShortNameDemande(Demande demande) {
setIlnShortNameOnDemande(demande);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ public Demande creerDemande(String rcr, Integer userNum) {
return save(demandeSupp);
}

@Override
public void modifierShortNameDemande(Demande demande) {
setIlnShortNameOnDemande(demande);
}

@Override
public Demande archiverDemande(Demande demande) throws DemandeCheckingException {
DemandeSupp demandeSupp = (DemandeSupp) demande;
Expand Down
1 change: 1 addition & 0 deletions web/src/main/java/fr/abes/item/web/DemandeRestService.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public DemandeWebDto modifDemande(@PathVariable("type") TYPE_DEMANDE type, @Path
if (demande != null) {
if (rcr.isPresent()) {
demande.setRcr(rcr.get());
service.modifierShortNameDemande(demande);
return builder.buildDemandeDto(service.save(demande), type);
}
if (type.equals(TYPE_DEMANDE.EXEMP) && typeExemp.isPresent()) {
Expand Down

0 comments on commit 1825107

Please sign in to comment.