DBCFX_RU_364 - Offerta Tim su rete Open Fiber - completamento per uscite di clienti TIM su rete
This commit is contained in:
@@ -690,7 +690,6 @@ public class DBSSController extends SystemController {
|
|||||||
log.write("9999", "SM_512 Errore invocazione servizio InFlightCancel: momentaneamente l'applicativo non effettuera' nessuna"
|
log.write("9999", "SM_512 Errore invocazione servizio InFlightCancel: momentaneamente l'applicativo non effettuera' nessuna"
|
||||||
+ "logica di riciclo in modo da non appesantire la coda DN : " + notifica.getDirectoryNumber());
|
+ "logica di riciclo in modo da non appesantire la coda DN : " + notifica.getDirectoryNumber());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
notifica.setDaScodare((long) 0);
|
notifica.setDaScodare((long) 0);
|
||||||
@@ -737,6 +736,7 @@ public class DBSSController extends SystemController {
|
|||||||
String codiceEsito = "";
|
String codiceEsito = "";
|
||||||
String descrizione = "";
|
String descrizione = "";
|
||||||
|
|
||||||
|
//Scenario AS-IS di recupero dell'esito (OK/KO) e descrizione da CCC
|
||||||
if (responseFlight.getResult() != null && responseFlight.getResult().getCustomerOrderItem() != null &&
|
if (responseFlight.getResult() != null && responseFlight.getResult().getCustomerOrderItem() != null &&
|
||||||
responseFlight.getResult().getCustomerOrderItem().length > 0) {
|
responseFlight.getResult().getCustomerOrderItem().length > 0) {
|
||||||
for (ResultCustomerOrderItemType order : responseFlight.getResult().getCustomerOrderItem()) {
|
for (ResultCustomerOrderItemType order : responseFlight.getResult().getCustomerOrderItem()) {
|
||||||
@@ -751,15 +751,35 @@ public class DBSSController extends SystemController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!Func.isNull(codiceEsito)) { //Scenario AS-IS di valutazione OK KO da CCC
|
||||||
log.write("9999", "CodiceEsito : " + codiceEsito + "descrizione :" + descrizione);
|
log.write("9999", "CodiceEsito : " + codiceEsito + "descrizione :" + descrizione);
|
||||||
|
|
||||||
if (!"OK".equalsIgnoreCase(codiceEsito)) {
|
if(!"OK".equalsIgnoreCase(codiceEsito)){
|
||||||
//SM_512
|
//SM_512
|
||||||
//throw new Exception("Risposta errata da CustomerOrderMgmt.responseFlight");
|
//throw new Exception("Risposta errata da CustomerOrderMgmt.responseFlight");
|
||||||
log.write("9999", "SM_512 CodiceEsito KO " + codiceEsito + "descrizione :" + descrizione + " Codice Ordine OLO: " + codiceOrdineOlo +
|
log.write("9999", "SM_512 CodiceEsito KO " + codiceEsito + "descrizione :" + descrizione + " Codice Ordine OLO: " + codiceOrdineOlo +
|
||||||
"In attesa di capire come comportarsi nel caso di KO da parte di CCC, l'applicativo non fara' nulla");
|
"In attesa di capire come comportarsi nel caso di KO da parte di CCC, l'applicativo non fara' nulla");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
//Recuperiamo codice e descrizione restituite da CCC nello scenario aggiunto con la Del.82 Consumer
|
||||||
|
if (responseFlight.getProcessData() != null) {
|
||||||
|
codiceEsito = (responseFlight.getProcessData().getReturnCode() != null) ? responseFlight.getProcessData().getReturnCode() : "";
|
||||||
|
descrizione = (responseFlight.getProcessData().getReturnDescription() != null) ? responseFlight.getProcessData().getReturnDescription() : "";
|
||||||
|
}
|
||||||
|
|
||||||
|
// I codici di OK restituiti da CCC sul metodo inFlightCancel sono: "000" (OK - Ack) e "004" (OK - Result); mentre tutti gli altri sono KO.
|
||||||
|
if("000".equalsIgnoreCase(codiceEsito) || "004".equalsIgnoreCase(codiceEsito)){
|
||||||
|
log.write("9999", "CodiceEsito OK: " + codiceEsito + " Codice Ordine OLO: " + codiceOrdineOlo);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
log.write("9999", "CodiceEsito KO " + codiceEsito + "descrizione :" + descrizione + " Codice Ordine OLO: " + codiceOrdineOlo +
|
||||||
|
" in caso di KO da parte di CCC, l'applicativo non effettuerà alcun retry");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private boolean checkCodiceOrdineOlo(GnpCrmNotifyDonorOut notifica) {
|
private boolean checkCodiceOrdineOlo(GnpCrmNotifyDonorOut notifica) {
|
||||||
return notifica.getCodiceOrdineOlo() != null && !notifica.getCodiceOrdineOlo().equalsIgnoreCase("");
|
return notifica.getCodiceOrdineOlo() != null && !notifica.getCodiceOrdineOlo().equalsIgnoreCase("");
|
||||||
@@ -2222,7 +2242,6 @@ public class DBSSController extends SystemController {
|
|||||||
codiceRichiestaRetail.setCharacteristicSpecification(codiceRichiestaRetailName);
|
codiceRichiestaRetail.setCharacteristicSpecification(codiceRichiestaRetailName);
|
||||||
characteristicValueTypes[0] = codiceRichiestaRetail;
|
characteristicValueTypes[0] = codiceRichiestaRetail;
|
||||||
|
|
||||||
|
|
||||||
dbss_com.customerordermgmtcustomtypes.x20150511.CharacteristicSpecificationType serviceNumber =
|
dbss_com.customerordermgmtcustomtypes.x20150511.CharacteristicSpecificationType serviceNumber =
|
||||||
new dbss_com.customerordermgmtcustomtypes.x20150511.CharacteristicSpecificationType();
|
new dbss_com.customerordermgmtcustomtypes.x20150511.CharacteristicSpecificationType();
|
||||||
serviceNumber.setName("ServiceNumber");
|
serviceNumber.setName("ServiceNumber");
|
||||||
|
|||||||
@@ -27,8 +27,6 @@ import it.valueteam.gnp.utility.DateUtils;
|
|||||||
import it.valueteam.gnp.utility.Func;
|
import it.valueteam.gnp.utility.Func;
|
||||||
import it.valueteam.gnp.utility.Resources;
|
import it.valueteam.gnp.utility.Resources;
|
||||||
|
|
||||||
import it.valueteam.gnp.ws.dbss.client.WirelineCeaseCheck82;
|
|
||||||
import it.valueteam.gnp.ws.sdp.model.CharacteristicValue;
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.hibernate.criterion.Restrictions;
|
import org.hibernate.criterion.Restrictions;
|
||||||
|
|
||||||
@@ -1700,8 +1698,11 @@ public class DBSSFormatController extends FormatController {
|
|||||||
|
|
||||||
notifyOut.setSistComp("D");
|
notifyOut.setSistComp("D");
|
||||||
notifyOut.setCodiceSegreto(richiesta.getCos());
|
notifyOut.setCodiceSegreto(richiesta.getCos());
|
||||||
// Per la Del.82 in continuità con la Del.274 in mancanza del DN1 da NOW mappiamo il COR (Codice Risorsa)
|
|
||||||
notifyOut.setDirectoryNumber(nowIn.getNpDn1() != null ? nowIn.getNpDn1() : richiesta.getCor());
|
// R1C-24-0249/R1F-24-0045: CE003-Uscita del.82 senza NP:
|
||||||
|
// per la Del.82 in mancanza del DN1 da NOW mappiamo il DN ricevuto in FASE2 nella richiesta di Migrazione da OLO (TC1)
|
||||||
|
notifyOut.setDirectoryNumber(nowIn.getNpDn1() != null ? nowIn.getNpDn1() : richiesta.getDn());
|
||||||
|
|
||||||
notifyOut.setIdOperatoreDonating(richiesta.getCowDonating());
|
notifyOut.setIdOperatoreDonating(richiesta.getCowDonating());
|
||||||
notifyOut.setCognomeCliente(richiesta.getCognomeCliente());
|
notifyOut.setCognomeCliente(richiesta.getCognomeCliente());
|
||||||
|
|
||||||
@@ -1719,16 +1720,40 @@ public class DBSSFormatController extends FormatController {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// R1C-24-0249/R1F-24-0045: CE003-Uscita del.82 senza NP:
|
||||||
|
// nel caso di assenza di numerazioni aggiuntive (DN2, ... DN10) da parte di NOW nella N8, DBCFX a valle della N10 da NOW invierà a CCC le numerazioni alternative
|
||||||
|
// recuperate dalla FASE2 nella richiesta di Migrazione da OLO (TC1)
|
||||||
|
|
||||||
String aggiuntivi = "";
|
String aggiuntivi = "";
|
||||||
|
|
||||||
if (!Func.isNull(nowIn.getNpDn2())) aggiuntivi += nowIn.getNpDn2() + ";";
|
if (!Func.isNull(nowIn.getNpDn2())) aggiuntivi += nowIn.getNpDn2() + ";";
|
||||||
|
else if (!Func.isNull(richiesta.getDn2())) aggiuntivi += richiesta.getDn2() + ";";
|
||||||
|
|
||||||
if (!Func.isNull(nowIn.getNpDn3())) aggiuntivi += nowIn.getNpDn3() + ";";
|
if (!Func.isNull(nowIn.getNpDn3())) aggiuntivi += nowIn.getNpDn3() + ";";
|
||||||
|
else if (!Func.isNull(richiesta.getDn3())) aggiuntivi += richiesta.getDn3() + ";";
|
||||||
|
|
||||||
if (!Func.isNull(nowIn.getNpDn4())) aggiuntivi += nowIn.getNpDn4() + ";";
|
if (!Func.isNull(nowIn.getNpDn4())) aggiuntivi += nowIn.getNpDn4() + ";";
|
||||||
|
else if (!Func.isNull(richiesta.getDn4())) aggiuntivi += richiesta.getDn4() + ";";
|
||||||
|
|
||||||
if (!Func.isNull(nowIn.getNpDn5())) aggiuntivi += nowIn.getNpDn5() + ";";
|
if (!Func.isNull(nowIn.getNpDn5())) aggiuntivi += nowIn.getNpDn5() + ";";
|
||||||
|
else if (!Func.isNull(richiesta.getDn5())) aggiuntivi += richiesta.getDn5() + ";";
|
||||||
|
|
||||||
if (!Func.isNull(nowIn.getNpDn6())) aggiuntivi += nowIn.getNpDn6() + ";";
|
if (!Func.isNull(nowIn.getNpDn6())) aggiuntivi += nowIn.getNpDn6() + ";";
|
||||||
|
else if (!Func.isNull(richiesta.getDn6())) aggiuntivi += richiesta.getDn6() + ";";
|
||||||
|
|
||||||
if (!Func.isNull(nowIn.getNpDn7())) aggiuntivi += nowIn.getNpDn7() + ";";
|
if (!Func.isNull(nowIn.getNpDn7())) aggiuntivi += nowIn.getNpDn7() + ";";
|
||||||
|
else if (!Func.isNull(richiesta.getDn7())) aggiuntivi += richiesta.getDn7() + ";";
|
||||||
|
|
||||||
if (!Func.isNull(nowIn.getNpDn8())) aggiuntivi += nowIn.getNpDn8() + ";";
|
if (!Func.isNull(nowIn.getNpDn8())) aggiuntivi += nowIn.getNpDn8() + ";";
|
||||||
|
else if (!Func.isNull(richiesta.getDn8())) aggiuntivi += richiesta.getDn8() + ";";
|
||||||
|
|
||||||
if (!Func.isNull(nowIn.getNpDn9())) aggiuntivi += nowIn.getNpDn9() + ";";
|
if (!Func.isNull(nowIn.getNpDn9())) aggiuntivi += nowIn.getNpDn9() + ";";
|
||||||
|
else if (!Func.isNull(richiesta.getDn9())) aggiuntivi += richiesta.getDn9() + ";";
|
||||||
|
|
||||||
if (!Func.isNull(nowIn.getNpDn10())) aggiuntivi += nowIn.getNpDn10() + ";";
|
if (!Func.isNull(nowIn.getNpDn10())) aggiuntivi += nowIn.getNpDn10() + ";";
|
||||||
|
else if (!Func.isNull(richiesta.getDn10())) aggiuntivi += richiesta.getDn10() + ";";
|
||||||
|
|
||||||
if (aggiuntivi.endsWith(";")) aggiuntivi = aggiuntivi.substring(0, aggiuntivi.length()-1);
|
if (aggiuntivi.endsWith(";")) aggiuntivi = aggiuntivi.substring(0, aggiuntivi.length()-1);
|
||||||
if (!aggiuntivi.equals("")) notifyOut.setAggiuntivi(aggiuntivi);
|
if (!aggiuntivi.equals("")) notifyOut.setAggiuntivi(aggiuntivi);
|
||||||
|
|
||||||
@@ -1741,7 +1766,11 @@ public class DBSSFormatController extends FormatController {
|
|||||||
|
|
||||||
notifyOut.setSistComp(richiesta.getCrmCompetenza());
|
notifyOut.setSistComp(richiesta.getCrmCompetenza());
|
||||||
|
|
||||||
if ((DBSSMap.EVENTO_ESPLETAMENTO).equals(notifyOut.getTipoEvento()) || (DBSSMap.EVENTO_ANNULLAMENTO).equals(notifyOut.getTipoEvento())) {
|
if (
|
||||||
|
(DBSSMap.EVENTO_ESPLETAMENTO).equals(notifyOut.getTipoEvento()) ||
|
||||||
|
(DBSSMap.EVENTO_ANNULLAMENTO).equals(notifyOut.getTipoEvento()) ||
|
||||||
|
(DBSSMap.EVENTO_ESPLETAMENTO_KO).equals(notifyOut.getTipoEvento())
|
||||||
|
) {
|
||||||
notifyOut.setDes(nowIn.getDataEspletamento());
|
notifyOut.setDes(nowIn.getDataEspletamento());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user