@@ -2833,12 +2833,6 @@ else if(classeApiMethode.equals(classeLangueConfig.getString(ConfigCles.var_PUTF
28332833 tl (3 , "}));" );
28342834 tl (2 , "});" );
28352835 tl (2 , "CompositeFuture.all(futures).onSuccess( a -> {" );
2836- tl (3 , "if(" , classeLangueConfig .getString (ConfigCles .var_requeteApi ), " != null) {" );
2837- tl (4 , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ".setNumPATCH(" , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ".getNumPATCH() + " , classeLangueConfig .getString (ConfigCles .var_liste ), classeNomSimple , ".getResponse().getResponse().getDocs().size());" );
2838- tl (4 , "if(" , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ".getNumFound() == 1L)" );
2839- tl (5 , classeLangueConfig .getString (ConfigCles .var_liste ), classeNomSimple , ".first()." , classeLangueConfig .getString (ConfigCles .var_requeteApi ), classeNomSimple , "();" );
2840- tl (4 , "eventBus.publish(\" websocket" , classeNomSimple , "\" , JsonObject.mapFrom(" , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ").toString());" );
2841- tl (3 , "}" );
28422836 tl (3 , classeLangueConfig .getString (ConfigCles .var_liste ), classeNomSimple , ".next().onSuccess(" , classeLangueConfig .getString (ConfigCles .var_suivant ), " -> {" );
28432837 tl (4 , "if(" , classeLangueConfig .getString (ConfigCles .var_suivant ), ") {" );
28442838 tl (5 , classeLangueConfig .getString (ConfigCles .var_liste ), classeApiMethode , classeNomSimple , "(" , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ", " , classeLangueConfig .getString (ConfigCles .var_liste ), classeNomSimple , ").onSuccess(b -> {" );
@@ -3032,7 +3026,13 @@ else if(StringUtils.contains(classeApiMethode, "PATCH")) {
30323026 if (classeModele )
30333027 tl (7 , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ".setPk(Optional.ofNullable(" , classeLangueConfig .getString (ConfigCles .var_liste ), classeNomSimple , ".first()).map(o2 -> o2.getPk()).orElse(null));" );
30343028 tl (7 , "eventBus.publish(\" websocket" , classeNomSimple , "\" , JsonObject.mapFrom(" , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ").toString());" );
3035- tl (7 , classeApiOperationIdMethode , "Future(o, false).onSuccess(a -> {" );
3029+ tl (7 , classeApiOperationIdMethode , "Future(o, false).onSuccess(o2 -> {" );
3030+ tl (8 , "if(" , classeLangueConfig .getString (ConfigCles .var_requeteApi ), " != null) {" );
3031+ tl (9 , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ".setNumPATCH(" , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ".getNumPATCH() + " , classeLangueConfig .getString (ConfigCles .var_liste ), classeNomSimple , ".getResponse().getResponse().getDocs().size());" );
3032+ tl (9 , "if(" , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ".getNumFound() == 1L)" );
3033+ tl (10 , "o2." , classeLangueConfig .getString (ConfigCles .var_requeteApi ), classeNomSimple , "();" );
3034+ tl (9 , "eventBus.publish(\" websocket" , classeNomSimple , "\" , JsonObject.mapFrom(" , classeLangueConfig .getString (ConfigCles .var_requeteApi ), ").toString());" );
3035+ tl (8 , "}" );
30363036 tl (8 , classeLangueConfig .getString (ConfigCles .var_gestionnaireEvenements ), ".handle(Future.succeededFuture(ServiceResponse.completedWithJson(Buffer.buffer(new JsonObject().encodePrettily()))));" );
30373037 tl (7 , "}).onFailure(ex -> {" );
30383038 tl (8 , classeLangueConfig .getString (ConfigCles .var_gestionnaireEvenements ), ".handle(Future.failedFuture(ex));" );
0 commit comments