diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/SapHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/SapHibernateDAO.java index 04460875f..d63acbb5c 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/SapHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/SapHibernateDAO.java @@ -7,20 +7,20 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; +import com.rjconsultores.ventaboletos.dao.SapDAO; +import com.rjconsultores.ventaboletos.entidad.Empresa; +import com.rjconsultores.ventaboletos.entidad.FechamentoCntcorrente; +import com.rjconsultores.ventaboletos.entidad.PuntoVenta; +import com.rjconsultores.ventaboletos.enums.StatusIntegracaoSap; +import com.rjconsultores.ventaboletos.utilerias.DateUtil; +import com.rjconsultores.ventaboletos.vo.integracao.FechamentoCntCorrenteVO; + import org.hibernate.Query; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Repository; -import com.rjconsultores.ventaboletos.dao.SapDAO; -import com.rjconsultores.ventaboletos.entidad.Empresa; -import com.rjconsultores.ventaboletos.entidad.FechamentoCntcorrente; -import com.rjconsultores.ventaboletos.entidad.PuntoVenta; -import com.rjconsultores.ventaboletos.enums.EnumIntegracaoSap; -import com.rjconsultores.ventaboletos.utilerias.DateUtil; -import com.rjconsultores.ventaboletos.vo.integracao.FechamentoCntCorrenteVO; - @Repository("sapDAO") public class SapHibernateDAO extends GenericHibernateDAO implements SapDAO { @@ -30,13 +30,13 @@ public class SapHibernateDAO extends GenericHibernateDAO obtenerTodosParaRemessa(Empresa empresa, Date dataDe, Date dataAte, Boolean reenviar) { - return obtenerTodosParaRemessa(empresa, dataDe, dataAte, reenviar, null); + public List obtenerTodosParaRemessa(Empresa empresa, Date dataDe, Date dataAte, String status) { + return obtenerTodosParaRemessa(empresa, dataDe, dataAte, status, null); } @SuppressWarnings("unchecked") @Override - public List obtenerTodosParaRemessa(Empresa empresa, Date dataDe, Date dataAte, Boolean reenviar, PuntoVenta puntoVenta) { + public List obtenerTodosParaRemessa(Empresa empresa, Date dataDe, Date dataAte, String status, PuntoVenta puntoVenta) { StringBuilder sb = new StringBuilder(); sb.append(" SELECT "); @@ -77,8 +77,8 @@ public class SapHibernateDAO extends GenericHibernateDAO