spostato il salvataggio dei nuovi inserimenti prima della lettura dei dati presenti nella tabella
This commit is contained in:
@@ -84,8 +84,6 @@ public class GiacenzaService {
|
||||
cancellazioneKit(codMdep);
|
||||
logger.debug(String.format(GiacenzaService.class.getSimpleName() + " - Deposito %s - Cancellazione kit: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs", codMdep));
|
||||
|
||||
|
||||
|
||||
String dataParm = setupGest.getSetupDepo(multiDBTransactionManager.getPrimaryConnection(), "DATI_AZIENDA", "GIACENZA_DA_INV", "DATA_INIZ", codMdep);
|
||||
Date dataIniz ;
|
||||
if (!UtilityString.isNullOrEmpty(dataParm))
|
||||
@@ -93,6 +91,8 @@ public class GiacenzaService {
|
||||
else
|
||||
throw new Exception(String.format("Data inizio popolamento non valorizzata per il depostio %s", codMdep));
|
||||
|
||||
nuoviInserimenti(codMdep, dataIniz, queryArt);
|
||||
logger.debug(String.format(GiacenzaService.class.getSimpleName() + " - Deposito %s - Popolamento da griglia: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs", codMdep));
|
||||
|
||||
String sql;
|
||||
sql =
|
||||
@@ -102,8 +102,6 @@ public class GiacenzaService {
|
||||
"WHERE carelli_giacenza_prog.cod_mdep = %s", codMdep);
|
||||
|
||||
List<String> articoliSalvati = UtilityDB.executeSimpleQueryOnlyFirstColumn(multiDBTransactionManager.getPrimaryConnection(), sql);
|
||||
nuoviInserimenti(codMdep, dataIniz, queryArt);
|
||||
logger.debug(String.format(GiacenzaService.class.getSimpleName() + " - Deposito %s - Popolamento da griglia: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs", codMdep));
|
||||
popolaQtaCarInventario(codMdep, dataIniz, queryArt, articoliSalvati, codDtipRett);
|
||||
logger.debug(String.format(GiacenzaService.class.getSimpleName() + " - Deposito %s - Popolamento da inventario: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs", codMdep));
|
||||
popolaQtaMovimenti(codMdep, queryArt, articoliSalvati);
|
||||
|
||||
Reference in New Issue
Block a user