diff --git a/gnpdev/dbcfx/src/it/valueteam/gnp/manager/RequestManagerDonor82.java b/gnpdev/dbcfx/src/it/valueteam/gnp/manager/RequestManagerDonor82.java index efddb6e0..ec7b4e34 100644 --- a/gnpdev/dbcfx/src/it/valueteam/gnp/manager/RequestManagerDonor82.java +++ b/gnpdev/dbcfx/src/it/valueteam/gnp/manager/RequestManagerDonor82.java @@ -260,7 +260,7 @@ public class RequestManagerDonor82 { GnpAnagCowTelecom anagCowTelecom = anagCowDAO.findById(richiesta.getCowDonating()); //C09 2019 WA RICHIESTO ESCLUSIVAMENTE PER LA VERIFICA CS - if (Resources.getFLAG_CHECK_ANAG_COW_LINEA()) { + if (Resources.getFLAG_CHECK_ANAG_COW_LINEA() && richiesta.getDn()!=null) { log.write("9999", "CONTROLLO SU TABELLA GNP_ANAG_COW_LINEA_TELECOM(FLAG WA ABILITATO) : " + richiesta.getIdRichiesta() + " COW: " + richiesta.getCowDonating() + " DN:" + richiesta.getDn()); cowLineaDao = new GnpAnagCowLineaTelecomDAO(); anagCowLineaTelecom = cowLineaDao.findByDnAndCowOld(richiesta.getDn(), richiesta.getCowDonating()); @@ -278,7 +278,8 @@ public class RequestManagerDonor82 { // Se non trovo il cow nell'anagrafica: // 1)Aggiorno la tabella GNP_RICHIESTE_DONOR con cod_validazione = 1 // 2)Inserisco un record nella tabella GNP_OLO_RICHIESTE_DONOR_OUT - if (anagCowTelecom == null) { + //C06 2025 DBCFX_SM_702 devo gestire un mancato invio del DN dall'OLO con cod.session X + if (anagCowTelecom == null || richiesta.getDn() == null) { richiesta.setCodValidazione(1L); String sessionId = Func.findNextD82SessionId(); String dateSessionId = createSessionID82(sessionId); diff --git a/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/olo/OLOControllerDonor.java b/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/olo/OLOControllerDonor.java index 85248660..173abe8d 100644 --- a/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/olo/OLOControllerDonor.java +++ b/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/olo/OLOControllerDonor.java @@ -766,7 +766,8 @@ public class OLOControllerDonor extends AbstractOLOController implements Loggab && anagOloDAO.findById(richiesta.getCodiceOperatoreRecipient())!=null && !Func.isNull(richiesta.getCodiceOperatoreDonating()) && !Func.isNull(richiesta.getCor()) - && !Func.isNull(richiesta.getDn1()) + // DBCFX_SM_702 gestione assenza DN1 + //&& !Func.isNull(richiesta.getDn1()) ) { return true; } else {