Mmodifica import ordini PUDDY
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -618,6 +618,7 @@ public class PuddyService {
|
||||
setLog(logList, dataOrdProv, numOrdProv, "ORDINE GIA' IMPORTATO", "ORDINE AGENTE " + codVage);
|
||||
}
|
||||
|
||||
try {
|
||||
/*ArrayNode arrayNode = objectMapper.createArrayNode();*/
|
||||
/*ArrayNode arrayNodeVG = objectMapper.createArrayNode();*/
|
||||
if ("S".equals(flagTD)) {
|
||||
@@ -727,7 +728,6 @@ public class PuddyService {
|
||||
codVdesVG = (String) getSingleValue(conn, "select cod_vdes from vtb_dest where cod_anag = " + UtilityDB.valueToString(codAnagVG));
|
||||
}
|
||||
|
||||
|
||||
String codVageAss = codVage;
|
||||
String codAnagAss = codAnag;
|
||||
String codVdesAss = codVdes;
|
||||
@@ -752,6 +752,9 @@ public class PuddyService {
|
||||
ordT.setCodVage(codVageAss);
|
||||
ordT.setCodMdep(codMdep);
|
||||
ordT.setSerie(serieAss);
|
||||
if (azienda.equalsIgnoreCase("VG")){
|
||||
ordT.setNote("INTERCODE=" + codAnag + "|" + codVdes);
|
||||
}
|
||||
if ("S".equals(flagTD)) {
|
||||
ordT.setCodFornTd(codFornTD);
|
||||
}
|
||||
@@ -825,6 +828,7 @@ public class PuddyService {
|
||||
if (i < rows) {
|
||||
res.next();
|
||||
codFornTD = res.getString(2);
|
||||
azienda = res.getString(22);
|
||||
res.previous();
|
||||
}
|
||||
|
||||
@@ -855,6 +859,15 @@ public class PuddyService {
|
||||
res.close();
|
||||
info.close();
|
||||
|
||||
multiDBTransactionManager.commitAll();
|
||||
multiDBTransactionManagerVG.commitAll();
|
||||
|
||||
} catch (Exception e){
|
||||
multiDBTransactionManager.rollbackAll();
|
||||
multiDBTransactionManagerVG.rollbackAll();
|
||||
throw e;
|
||||
}
|
||||
|
||||
return List;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user