Fare in modo che la procedura di importazione dei listini di apulia committi ogni listino salvato
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user