From fb84701303b6cc8abd7141f5cc1aa572e832fb72 Mon Sep 17 00:00:00 2001 From: vincenzofariello Date: Mon, 2 Sep 2024 16:38:29 +0200 Subject: [PATCH] Fix DBCFX_SM_687: Anomalia delibera 82 viste GNPGO, eccezione scrittura notifiche nelle viste del portale GO uscite OF FTTH --- gnpapp/script/del82/alterTableGnpgoGestioneRichiesteD82.sql | 5 +++++ gnpapp/script/del82/alterTableGnpgoNotificheDel82.sql | 2 ++ .../formatcontroller/dbcfxgo/DbcfxgoFormatController.java | 2 +- .../gnpgo/core/dao/db/hb/GnpgoGestioneNotificheD82.hbm.xml | 4 ++-- .../gnpgo/core/dao/db/hb/GnpgoGestioneRichiesteD82.hbm.xml | 4 ++-- 5 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 gnpapp/script/del82/alterTableGnpgoGestioneRichiesteD82.sql create mode 100644 gnpapp/script/del82/alterTableGnpgoNotificheDel82.sql diff --git a/gnpapp/script/del82/alterTableGnpgoGestioneRichiesteD82.sql b/gnpapp/script/del82/alterTableGnpgoGestioneRichiesteD82.sql new file mode 100644 index 00000000..cea56e98 --- /dev/null +++ b/gnpapp/script/del82/alterTableGnpgoGestioneRichiesteD82.sql @@ -0,0 +1,5 @@ +ALTER TABLE "GNPGO"."GNPGO_GESTIONE_RICHIESTE_D82" +DROP CONSTRAINT "GNPGO_RICHIESTE_D82_STATO_FK"; + +ALTER TABLE "GNPGO"."GNPGO_GESTIONE_RICHIESTE_D82" +MODIFY "CODICE_MOTIVO_RIFIUTO" NUMBER(2,0); \ No newline at end of file diff --git a/gnpapp/script/del82/alterTableGnpgoNotificheDel82.sql b/gnpapp/script/del82/alterTableGnpgoNotificheDel82.sql new file mode 100644 index 00000000..eea811ed --- /dev/null +++ b/gnpapp/script/del82/alterTableGnpgoNotificheDel82.sql @@ -0,0 +1,2 @@ +ALTER TABLE "GNPGO"."GNPGO_NOTIFICHE_DEL82" +MODIFY "CODICE_MOTIVO_RIFIUTO" NUMBER(2,0); \ No newline at end of file diff --git a/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/formatcontroller/dbcfxgo/DbcfxgoFormatController.java b/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/formatcontroller/dbcfxgo/DbcfxgoFormatController.java index 526a42a1..2e5da017 100644 --- a/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/formatcontroller/dbcfxgo/DbcfxgoFormatController.java +++ b/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/formatcontroller/dbcfxgo/DbcfxgoFormatController.java @@ -1589,7 +1589,7 @@ public class DbcfxgoFormatController extends FormatController{ notifica.setTipoComunicazione("N9"); if (nowOut.getCodiceMotivazione() != null) { notifica.setCodiceRifiuto(nowOut.getCodiceMotivazione().substring(1)); - notifica.setCausaleRifiuto(nowOut.getCodiceMotivazione()); + notifica.setCausaleRifiuto(nowOut.getMotivazione()); notifica.setStato(1L); } else { notifica.setStato(0L); diff --git a/gnpdev/dbcfxgo/src/it/valueteam/gnpgo/core/dao/db/hb/GnpgoGestioneNotificheD82.hbm.xml b/gnpdev/dbcfxgo/src/it/valueteam/gnpgo/core/dao/db/hb/GnpgoGestioneNotificheD82.hbm.xml index 96ce9bd2..57946d80 100644 --- a/gnpdev/dbcfxgo/src/it/valueteam/gnpgo/core/dao/db/hb/GnpgoGestioneNotificheD82.hbm.xml +++ b/gnpdev/dbcfxgo/src/it/valueteam/gnpgo/core/dao/db/hb/GnpgoGestioneNotificheD82.hbm.xml @@ -82,8 +82,8 @@ - - + + diff --git a/gnpdev/dbcfxgo/src/it/valueteam/gnpgo/core/dao/db/hb/GnpgoGestioneRichiesteD82.hbm.xml b/gnpdev/dbcfxgo/src/it/valueteam/gnpgo/core/dao/db/hb/GnpgoGestioneRichiesteD82.hbm.xml index dbfa83c7..104e317d 100644 --- a/gnpdev/dbcfxgo/src/it/valueteam/gnpgo/core/dao/db/hb/GnpgoGestioneRichiesteD82.hbm.xml +++ b/gnpdev/dbcfxgo/src/it/valueteam/gnpgo/core/dao/db/hb/GnpgoGestioneRichiesteD82.hbm.xml @@ -40,8 +40,8 @@ - - + +