Finish Hotfix-1
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -105,7 +105,7 @@ public class StoredProcedure {
|
|||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
||||||
if(!mrpSetupHandlerService.isGestioneAbilitata(dbName)) {
|
if (!mrpSetupHandlerService.isGestioneAbilitata(dbName)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,18 +114,18 @@ public class StoredProcedure {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
multiDBTransactionManager = new MultiDBTransactionManager(profileDb);
|
multiDBTransactionManager = new MultiDBTransactionManager(profileDb);
|
||||||
String articoli = StringUtils.join(listaArticoli, '|');
|
String articoli = StringUtils.join(listaArticoli, '|');
|
||||||
|
|
||||||
CallableStatement StoredProcedure = multiDBTransactionManager.getPrimaryConnection().prepareCall("{call MRP_UpdateQtaImpProx(?)}");
|
CallableStatement StoredProcedure = multiDBTransactionManager.getPrimaryConnection().prepareCall("{call MRP_UpdateQtaImpProx(?)}");
|
||||||
StoredProcedure.setString(1, articoli);
|
StoredProcedure.setString(1, articoli);
|
||||||
|
|
||||||
StoredProcedure.execute();
|
StoredProcedure.execute();
|
||||||
StoredProcedure.close();
|
StoredProcedure.close();
|
||||||
|
|
||||||
multiDBTransactionManager.commitAll();
|
multiDBTransactionManager.commitAll();
|
||||||
multiDBTransactionManager.closeAll();
|
multiDBTransactionManager.closeAll();
|
||||||
|
|
||||||
this.logger.debug("MRP_UpdateQtaImpProx - Aggiornato impegni prossimi articoli : " + StringUtils.join(listaArticoli, ','));
|
this.logger.debug("MRP_UpdateQtaImpProx - Aggiornato impegni prossimi articoli : " + StringUtils.join(listaArticoli, ','));
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
//TO-DO inviare email con errore
|
//TO-DO inviare email con errore
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ public class UtilityTiming {
|
|||||||
public static void logSummary(int id) {
|
public static void logSummary(int id) {
|
||||||
String summary = getSummaryAsString(id);
|
String summary = getSummaryAsString(id);
|
||||||
if (summary != null) {
|
if (summary != null) {
|
||||||
logger.info(summary);
|
logger.trace(summary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user