Solucionado bug en el que al generar un informe nuevo, se mantenia la informacion antigua en el map, esto se producia porque se reutilizaba el objeto que habia generado el informe anterior

This commit is contained in:
Daniel Cortes
2019-02-05 17:32:12 -03:00
parent 3345486ae3
commit f7b3ea9ed1
2 changed files with 2 additions and 1 deletions

View File

@@ -69,11 +69,11 @@ public class SQLiteInformeLibroDeVentasContentDAO extends InformeLibroDeVentasCo
public SQLiteInformeLibroDeVentasContentDAO() {
this.connectionHolder = new SQLiteConnectionHolder();
this.map = new HashMap<>();
}
@Override
public Collection<InformeLibroDeVentasContent> getInformeMensual(LocalDate date) {
this.map = new HashMap<>();
try (Connection conn = connectionHolder.getConnection()) {
String queryTotales =
"select " +