aggiunta cancellazione dei kit
This commit is contained in:
@@ -81,6 +81,10 @@ public class GiacenzaService {
|
||||
|
||||
String codDtipRett = setupGest.getSetup(multiDBTransactionManager.getPrimaryConnection(), "DATI_AZIENDA", "GIACENZA_DA_INV", "TIPO_DOC_RETT");
|
||||
|
||||
cancellazioneKit(codMdep);
|
||||
logger.debug(String.format(GiacenzaService.class.getSimpleName() + " - Deposito %s - Cancellazione kit: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs", codMdep));
|
||||
|
||||
|
||||
String sql;
|
||||
sql =
|
||||
Query.format(
|
||||
@@ -120,6 +124,22 @@ public class GiacenzaService {
|
||||
UtilityEntity.throwEntitiesException(entityRet);
|
||||
}
|
||||
|
||||
|
||||
private void cancellazioneKit(String codMdep ) throws Exception {
|
||||
String sql = Query.format(
|
||||
"SELECT g.cod_mdep, g.cod_mart\n" +
|
||||
"FROM carelli_giacenza_prog g INNER JOIN mtb_aart ON g.cod_mart =mtb_aart.cod_mart \n" +
|
||||
"WHERE articolo_composto = 'S' AND g.cod_mdep = %s\n",
|
||||
codMdep);
|
||||
|
||||
List<CarelliGiacenzaProg> carelliGiacenzaProgs = new ResultSetMapper().mapQuerySetToList(multiDBTransactionManager.getPrimaryConnection(), sql, CarelliGiacenzaProg.class, OperationType.DELETE);
|
||||
|
||||
List<EntityBase> entityRet = entityProcessor.processEntityList(carelliGiacenzaProgs, false, false, false);
|
||||
|
||||
UtilityEntity.throwEntitiesException(entityRet);
|
||||
}
|
||||
|
||||
|
||||
private void popolaQtaMovimenti(String codMdep, String queryArt, List<String> articoliSalvati) throws Exception {
|
||||
String sql;
|
||||
sql =
|
||||
|
||||
Reference in New Issue
Block a user