Fare in modo che la procedura di importazione dei listini di apulia committi ogni listino salvato

This commit is contained in:
2024-03-12 12:35:37 +01:00
parent ccd705d863
commit 8753f6c84a
3 changed files with 9 additions and 8 deletions

View File

@@ -438,15 +438,16 @@ public class ImportAnagListiniService {
return mtbAart;
}
public List<EntityBase> importAnagListinoAcq(List<EntityBase> entityList, String tipoImportListino) throws Exception {
return importAnagListinoAcq(entityList, tipoImportListino, null, null, false);
}
public List<EntityBase> importAnagListinoAcq(List<EntityBase> entityList, String tipoImportListino, String codAlisParm, String dataValiditaStr) throws Exception {
return importAnagListinoAcq(entityList, tipoImportListino, codAlisParm, dataValiditaStr, false);
return importAnagListinoAcq(entityList, tipoImportListino, codAlisParm, dataValiditaStr, false, true);
}
public List<EntityBase> importAnagListinoAcq(List<EntityBase> entityList, String tipoImportListino, String codAlisParm, String dataValiditaStr, Boolean confrontaPrezzi) throws Exception {
return importAnagListinoAcq(entityList, tipoImportListino, codAlisParm, dataValiditaStr, confrontaPrezzi, true);
}
public List<EntityBase> importAnagListinoAcq(List<EntityBase> entityList, String tipoImportListino, String codAlisParm, String dataValiditaStr,
Boolean confrontaPrezzi, Boolean singleTransaction) throws Exception {
String tableName = null, codAlis = null, codAlisOld = null;
Date dataInizLisa = null, dataInizLisaOld = null;
Boolean existLisa = false;
@@ -656,7 +657,7 @@ public class ImportAnagListiniService {
}
List<EntityBase> processedEntites = entityProcessor.processEntityList(entitySave, true);
List<EntityBase> processedEntites = entityProcessor.processEntityList(entitySave, singleTransaction);
UtilityEntity.throwEntitiesException(processedEntites);

View File

@@ -341,7 +341,7 @@ public class ImportListiniAcquistoApuliaCarrefourService {
}
if (entityList.size() > 0) {
entityList = importAnagListiniService.importAnagListinoAcq(entityList, "V", null, null);
entityList = importAnagListiniService.importAnagListinoAcq(entityList, "V", null, null, false, false);
} else {
throw new Exception("Non ci sono listini da aggiornare");
}

View File

@@ -77,7 +77,7 @@ public class ProductServices {
entityList.add(l);
}
List<EntityBase> entitites = importAnagListiniService.importAnagListinoAcq(entityList, "V" , null, null, false);
List<EntityBase> entitites = importAnagListiniService.importAnagListinoAcq(entityList, "V" , null, null);
return entitites;
}