Skip to content

Commit

Permalink
Utilise le DestinataireModel dans la récupération du JSON
Browse files Browse the repository at this point in the history
Issue: #203606
Change-Id: I06dd4fc3e84cb4e72ab85ce7937a5c4ff304aef6
  • Loading branch information
mzi committed Feb 7, 2024
1 parent fe90139 commit 8530cb5
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,14 @@ public ResponseEntity<java.lang.String> notifierCourrier(final @RequestBody Stri
String erreurDocument = courrierRepository.insertDocument(codeCourrier, nomCourrier);

// Insertion dans table courrier_document
ArrayList<Object> destinataires = new ArrayList<Object>();
destinataires.addAll((ArrayList<Object>) mapParametres.get("destinataires"));
List<Object> destinataires = new ArrayList<>();
destinataires.addAll((List<Object>) mapParametres.get("destinataires"));
String erreurCourrierDocument = "";
String erreurEmail = "";
for (Object dest : destinataires) {
Long idDest = Long.valueOf(String.valueOf(((HashMap) dest).get("id")));
String typeDest = String.valueOf(((HashMap) dest).get("Type")).toUpperCase();
String nomDest = String.valueOf(((HashMap) dest).get("Nom"));
for (Object destinataire : destinataires) {
Long idDest = Long.valueOf(String.valueOf(((Map) destinataire).get("id")));
String typeDest = String.valueOf(((Map) destinataire).get("type")).toUpperCase();
String nomDest = String.valueOf(((Map) destinataire).get("nom"));

if (erreurDocument.equals("")) {
// Insertion dans la table courrier_document
Expand Down

0 comments on commit 8530cb5

Please sign in to comment.