Allineamento DBCFX_RU_364 - Offerta Tim su rete Open Fiber - completamento per uscite di clienti TIM su rete
This commit is contained in:
@@ -737,6 +737,7 @@ public class DBSSController extends SystemController {
|
||||
String codiceEsito = "";
|
||||
String descrizione = "";
|
||||
|
||||
//Scenario AS-IS di recupero dell'esito (OK/KO) e descrizione da CCC
|
||||
if (responseFlight.getResult() != null && responseFlight.getResult().getCustomerOrderItem() != null &&
|
||||
responseFlight.getResult().getCustomerOrderItem().length > 0) {
|
||||
for (ResultCustomerOrderItemType order : responseFlight.getResult().getCustomerOrderItem()) {
|
||||
@@ -751,14 +752,34 @@ public class DBSSController extends SystemController {
|
||||
}
|
||||
}
|
||||
}
|
||||
log.write("9999", "CodiceEsito : " + codiceEsito + "descrizione :" + descrizione);
|
||||
|
||||
if (!"OK".equalsIgnoreCase(codiceEsito)) {
|
||||
//SM_512
|
||||
//throw new Exception("Risposta errata da CustomerOrderMgmt.responseFlight");
|
||||
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");
|
||||
if(!Func.isNull(codiceEsito)) { //Scenario AS-IS di valutazione OK KO da CCC
|
||||
log.write("9999", "CodiceEsito : " + codiceEsito + "descrizione :" + descrizione);
|
||||
|
||||
if(!"OK".equalsIgnoreCase(codiceEsito)){
|
||||
//SM_512
|
||||
//throw new Exception("Risposta errata da CustomerOrderMgmt.responseFlight");
|
||||
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");
|
||||
}
|
||||
}
|
||||
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) {
|
||||
|
||||
@@ -27,8 +27,6 @@ import it.valueteam.gnp.utility.DateUtils;
|
||||
import it.valueteam.gnp.utility.Func;
|
||||
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.hibernate.criterion.Restrictions;
|
||||
|
||||
@@ -1700,8 +1698,11 @@ public class DBSSFormatController extends FormatController {
|
||||
|
||||
notifyOut.setSistComp("D");
|
||||
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.setCognomeCliente(richiesta.getCognomeCliente());
|
||||
notifyOut.setCodiceRichiesta(richiesta.getIdRichiesta());
|
||||
@@ -1718,16 +1719,39 @@ 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 = "";
|
||||
|
||||
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() + ";";
|
||||
else if (!Func.isNull(richiesta.getDn3())) aggiuntivi += richiesta.getDn3() + ";";
|
||||
|
||||
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() + ";";
|
||||
else if (!Func.isNull(richiesta.getDn5())) aggiuntivi += richiesta.getDn5() + ";";
|
||||
|
||||
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() + ";";
|
||||
else if (!Func.isNull(richiesta.getDn7())) aggiuntivi += richiesta.getDn7() + ";";
|
||||
|
||||
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() + ";";
|
||||
else if (!Func.isNull(richiesta.getDn9())) aggiuntivi += richiesta.getDn9() + ";";
|
||||
|
||||
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.equals("")) notifyOut.setAggiuntivi(aggiuntivi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user