Atualização do log4j
parent
872895eb8b
commit
6263b61f1c
30
pom.xml
30
pom.xml
|
@ -3,7 +3,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ModelWeb</artifactId>
|
<artifactId>ModelWeb</artifactId>
|
||||||
<version>1.19.0</version>
|
<version>1.20.0</version>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
|
@ -203,6 +203,34 @@
|
||||||
<version>3.1.0</version>
|
<version>3.1.0</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
|
<artifactId>log4j-core</artifactId>
|
||||||
|
<version>2.21.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
|
<artifactId>log4j-api</artifactId>
|
||||||
|
<version>2.21.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
|
<artifactId>log4j-slf4j-impl</artifactId>
|
||||||
|
<version>2.21.1</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
|
<artifactId>log4j-1.2-api</artifactId>
|
||||||
|
<version>2.21.1</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.logging.log4j</groupId>
|
||||||
|
<artifactId>log4j-jcl</artifactId>
|
||||||
|
<version>2.21.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package com.rjconsultores.routing;
|
package com.rjconsultores.routing;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
@Target({ElementType.METHOD, ElementType.TYPE})
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.rjconsultores.routing;
|
package com.rjconsultores.routing;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.aspectj.lang.ProceedingJoinPoint;
|
import org.aspectj.lang.ProceedingJoinPoint;
|
||||||
import org.aspectj.lang.annotation.Around;
|
import org.aspectj.lang.annotation.Around;
|
||||||
import org.aspectj.lang.annotation.Aspect;
|
import org.aspectj.lang.annotation.Aspect;
|
||||||
|
@ -13,7 +14,7 @@ import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||||
@Component
|
@Component
|
||||||
@Order(0)
|
@Order(0)
|
||||||
public class ReadOnlyRouteInterceptor {
|
public class ReadOnlyRouteInterceptor {
|
||||||
private static Logger log = Logger.getLogger(ReadOnlyRouteInterceptor.class);
|
private static final Logger log = LogManager.getLogger(ReadOnlyRouteInterceptor.class);
|
||||||
|
|
||||||
@Around("@annotation(readOnlyConnection)")
|
@Around("@annotation(readOnlyConnection)")
|
||||||
public Object proceed(ProceedingJoinPoint proceedingJoinPoint, ReadOnlyConnection readOnlyConnection) throws Throwable {
|
public Object proceed(ProceedingJoinPoint proceedingJoinPoint, ReadOnlyConnection readOnlyConnection) throws Throwable {
|
||||||
|
|
|
@ -3,7 +3,8 @@ package com.rjconsultores.ventaboletos.auditoria.interceptor;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.sql.Date;
|
import java.sql.Date;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.EmptyInterceptor;
|
import org.hibernate.EmptyInterceptor;
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
|
@ -26,7 +27,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
public class AuditInterceptor extends EmptyInterceptor {
|
public class AuditInterceptor extends EmptyInterceptor {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(AuditInterceptor.class);
|
private static final Logger log = LogManager.getLogger(AuditInterceptor.class);
|
||||||
|
|
||||||
// Considera que o ADM sempre tenha o ID igual a 1
|
// Considera que o ADM sempre tenha o ID igual a 1
|
||||||
private Integer SISTEMA_ID = 1;
|
private Integer SISTEMA_ID = 1;
|
||||||
|
|
|
@ -6,7 +6,8 @@ import java.sql.ResultSet;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
|
@ -25,7 +26,7 @@ import com.rjconsultores.ventaboletos.vo.aidf.AidfVo;
|
||||||
@Repository("aidfDAO")
|
@Repository("aidfDAO")
|
||||||
public class AidfHibernateDAO extends GenericHibernateDAO<Aidf, Long> implements AidfDAO {
|
public class AidfHibernateDAO extends GenericHibernateDAO<Aidf, Long> implements AidfDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(AidfHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(AidfHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public AidfHibernateDAO(
|
public AidfHibernateDAO(
|
||||||
|
|
|
@ -8,7 +8,8 @@ import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SQLQuery;
|
import org.hibernate.SQLQuery;
|
||||||
|
@ -35,7 +36,7 @@ import com.rjconsultores.ventaboletos.vo.embarcada.PtoVtaUsuarioUltimaVendaDispo
|
||||||
*/
|
*/
|
||||||
@Repository("boletoDAO")
|
@Repository("boletoDAO")
|
||||||
public class BoletoHibernateDAO extends GenericHibernateDAO<Boleto, Long> implements BoletoDAO {
|
public class BoletoHibernateDAO extends GenericHibernateDAO<Boleto, Long> implements BoletoDAO {
|
||||||
private static Logger log = Logger.getLogger(BoletoHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(BoletoHibernateDAO.class);
|
||||||
@Autowired
|
@Autowired
|
||||||
public BoletoHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public BoletoHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
setSessionFactory(factory);
|
setSessionFactory(factory);
|
||||||
|
|
|
@ -14,7 +14,8 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.hibernate.transform.AliasToBeanResultTransformer;
|
import org.hibernate.transform.AliasToBeanResultTransformer;
|
||||||
|
@ -49,7 +50,7 @@ import br.inf.portalfiscal.bpe.TBPe;
|
||||||
|
|
||||||
@Repository("bpeDAO")
|
@Repository("bpeDAO")
|
||||||
public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO {
|
public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO {
|
||||||
private static Logger log = Logger.getLogger(BpeHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(BpeHibernateDAO.class);
|
||||||
|
|
||||||
private static final String DATE_FORMAT_DMY = "dd/MM/yyyy";
|
private static final String DATE_FORMAT_DMY = "dd/MM/yyyy";
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,8 @@ import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -62,7 +63,7 @@ public class CalcularPeajeHibernateDAO extends GenericHibernateDAO<String, Strin
|
||||||
setSessionFactory(factory);
|
setSessionFactory(factory);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(CalcularPeajeHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(CalcularPeajeHibernateDAO.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Ruta> buscarRutaWithCasetaPeajeFromOrgao(OrgaoConcedente oc) {
|
public List<Ruta> buscarRutaWithCasetaPeajeFromOrgao(OrgaoConcedente oc) {
|
||||||
|
|
|
@ -23,7 +23,8 @@ import java.util.TreeSet;
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Hibernate;
|
import org.hibernate.Hibernate;
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
|
@ -62,7 +63,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
public class ConferenciaComissaoHibernateDAO extends GenericHibernateDAO<Conferencia, Long>
|
public class ConferenciaComissaoHibernateDAO extends GenericHibernateDAO<Conferencia, Long>
|
||||||
implements ConferenciaComissaoDAO {
|
implements ConferenciaComissaoDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ConferenciaComissaoHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(ConferenciaComissaoHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ContaCorrenteAgenciaDAO contaCorrenteAgenciaDAO;
|
private ContaCorrenteAgenciaDAO contaCorrenteAgenciaDAO;
|
||||||
|
|
|
@ -4,7 +4,8 @@ import java.math.BigDecimal;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Qualifier;
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
|
@ -23,7 +24,7 @@ import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||||
@Repository("contaCorrenteAgenciaDAO")
|
@Repository("contaCorrenteAgenciaDAO")
|
||||||
public class ContaCorrenteAgenciaHibernateDAO extends GenericHibernateDAO<ContaCorrentePtoVta, Long> implements ContaCorrenteAgenciaDAO {
|
public class ContaCorrenteAgenciaHibernateDAO extends GenericHibernateDAO<ContaCorrentePtoVta, Long> implements ContaCorrenteAgenciaDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ContaCorrenteAgenciaHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(ContaCorrenteAgenciaHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public ContaCorrenteAgenciaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public ContaCorrenteAgenciaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
|
|
@ -13,7 +13,8 @@ import java.util.GregorianCalendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.lang.math.NumberUtils;
|
import org.apache.commons.lang.math.NumberUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SQLQuery;
|
import org.hibernate.SQLQuery;
|
||||||
|
@ -67,7 +68,7 @@ public class CorridaHibernateDAO extends GenericHibernateDAO<Corrida, Corrida.Id
|
||||||
@Autowired
|
@Autowired
|
||||||
private CorridaTramoDAO corridaTramoDao;
|
private CorridaTramoDAO corridaTramoDao;
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(CorridaHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(CorridaHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public CorridaHibernateDAO(@Qualifier("sessionFactory") final SessionFactory factory) {
|
public CorridaHibernateDAO(@Qualifier("sessionFactory") final SessionFactory factory) {
|
||||||
|
|
|
@ -3,7 +3,8 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
|
@ -32,7 +33,7 @@ public class CorridaTramoHibernateDAO extends GenericHibernateDAO<CorridaTramo,
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private static Logger log = Logger.getLogger(CorridaTramoHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(CorridaTramoHibernateDAO.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CorridaTramo> obtenerTramoTarjetaEmitida() {
|
public List<CorridaTramo> obtenerTramoTarjetaEmitida() {
|
||||||
|
|
|
@ -2,7 +2,8 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.hibernate.transform.Transformers;
|
import org.hibernate.transform.Transformers;
|
||||||
|
@ -19,7 +20,7 @@ import com.rjconsultores.ventaboletos.entidad.EmbarcadaDispOperador;
|
||||||
@Repository("embarcadaDispOperadorDAO")
|
@Repository("embarcadaDispOperadorDAO")
|
||||||
public class EmbarcadaDispOperadorHibernateDAO extends GenericHibernateDAO<EmbarcadaDispOperador, Long>
|
public class EmbarcadaDispOperadorHibernateDAO extends GenericHibernateDAO<EmbarcadaDispOperador, Long>
|
||||||
implements EmbarcadaDispOperadorDAO {
|
implements EmbarcadaDispOperadorDAO {
|
||||||
private static Logger log = Logger.getLogger(EmbarcadaDispOperadorHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(EmbarcadaDispOperadorHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public EmbarcadaDispOperadorHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public EmbarcadaDispOperadorHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
|
|
@ -19,7 +19,8 @@ import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.commons.lang.math.NumberUtils;
|
import org.apache.commons.lang.math.NumberUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.hibernate.jdbc.Work;
|
import org.hibernate.jdbc.Work;
|
||||||
|
@ -74,7 +75,7 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
||||||
|
|
||||||
private static final String CODIGO_INDICADOR_CONTR_PREVIDENCIARIA = "00000060";
|
private static final String CODIGO_INDICADOR_CONTR_PREVIDENCIARIA = "00000060";
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(FiscalHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(FiscalHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSource;
|
private DataSource dataSource;
|
||||||
|
|
|
@ -10,7 +10,8 @@ import java.sql.ResultSet;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.dao.FormaPagamentoAgenciaDAO;
|
import com.rjconsultores.ventaboletos.dao.FormaPagamentoAgenciaDAO;
|
||||||
|
@ -22,7 +23,7 @@ import com.rjconsultores.ventaboletos.dao.FormaPagamentoAgenciaDAO;
|
||||||
@Repository("formaPagamentoAgenciaDAO")
|
@Repository("formaPagamentoAgenciaDAO")
|
||||||
public class FormaPagamentoAgenciaDAOImpl implements FormaPagamentoAgenciaDAO {
|
public class FormaPagamentoAgenciaDAOImpl implements FormaPagamentoAgenciaDAO {
|
||||||
|
|
||||||
private static final Logger log = Logger.getLogger(FormaPagamentoAgenciaDAOImpl.class);
|
private static final Logger log = LogManager.getLogger(FormaPagamentoAgenciaDAOImpl.class);
|
||||||
|
|
||||||
private String getSql(Date dataInicio, Date dataFinal) {
|
private String getSql(Date dataInicio, Date dataFinal) {
|
||||||
StringBuilder where = new StringBuilder();
|
StringBuilder where = new StringBuilder();
|
||||||
|
|
|
@ -4,7 +4,8 @@ import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
|
@ -22,7 +23,7 @@ import com.rjconsultores.ventaboletos.entidad.Pricing;
|
||||||
public class GP_PricingDiaHibernateDAO extends GenericHibernateDAO<GP_PricingDia, Integer>
|
public class GP_PricingDiaHibernateDAO extends GenericHibernateDAO<GP_PricingDia, Integer>
|
||||||
implements GP_PricingDiaDAO {
|
implements GP_PricingDiaDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(GP_PricingDiaHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(GP_PricingDiaHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public GP_PricingDiaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public GP_PricingDiaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
|
|
@ -14,7 +14,8 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,7 +25,7 @@ import org.springframework.stereotype.Repository;
|
||||||
@Repository("informeCategoriaVentaDAO")
|
@Repository("informeCategoriaVentaDAO")
|
||||||
public class InformeCategoriaVentaDAOImpl implements InformeCategoriaVentaDAO {
|
public class InformeCategoriaVentaDAOImpl implements InformeCategoriaVentaDAO {
|
||||||
|
|
||||||
private static final Logger log = Logger.getLogger(InformeCategoriaVentaDAOImpl.class);
|
private static final Logger log = LogManager.getLogger(InformeCategoriaVentaDAOImpl.class);
|
||||||
|
|
||||||
private String getSql(PuntoVenta puntoVenta, Ruta ruta, Parada origen,
|
private String getSql(PuntoVenta puntoVenta, Ruta ruta, Parada origen,
|
||||||
Parada destino, Empresa empresa, Integer numServicio, Date dataInicio,
|
Parada destino, Empresa empresa, Integer numServicio, Date dataInicio,
|
||||||
|
|
|
@ -12,7 +12,8 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -22,7 +23,7 @@ import org.springframework.stereotype.Repository;
|
||||||
@Repository("informePasajeroServicioDAO")
|
@Repository("informePasajeroServicioDAO")
|
||||||
public class InformePasajeroServicioDAOImpl implements InformePasajeroServicioDAO {
|
public class InformePasajeroServicioDAOImpl implements InformePasajeroServicioDAO {
|
||||||
|
|
||||||
private static final Logger log = Logger.getLogger(InformePasajeroServicioDAOImpl.class);
|
private static final Logger log = LogManager.getLogger(InformePasajeroServicioDAOImpl.class);
|
||||||
|
|
||||||
private String getSql(Empresa empresa, Marca marca, Integer numServicio,
|
private String getSql(Empresa empresa, Marca marca, Integer numServicio,
|
||||||
Date dataInicio, Date dataFinal) {
|
Date dataInicio, Date dataFinal) {
|
||||||
|
|
|
@ -11,7 +11,8 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,7 +22,7 @@ import org.springframework.stereotype.Repository;
|
||||||
@Repository("informeServicioDiarioDAO")
|
@Repository("informeServicioDiarioDAO")
|
||||||
public class InformeServicioDiarioDAOImpl implements InformeServicioDiarioDAO {
|
public class InformeServicioDiarioDAOImpl implements InformeServicioDiarioDAO {
|
||||||
|
|
||||||
private static final Logger log = Logger.getLogger(InformeServicioDiarioDAOImpl.class);
|
private static final Logger log = LogManager.getLogger(InformeServicioDiarioDAOImpl.class);
|
||||||
|
|
||||||
private String getSql(Empresa empresa, Integer numServicio, Date dataInicio,
|
private String getSql(Empresa empresa, Integer numServicio, Date dataInicio,
|
||||||
Date dataFinal) {
|
Date dataFinal) {
|
||||||
|
|
|
@ -11,7 +11,8 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,7 +22,7 @@ import org.springframework.stereotype.Repository;
|
||||||
@Repository("informeVentasPuntoVentaDAO")
|
@Repository("informeVentasPuntoVentaDAO")
|
||||||
public class InformeVentasPuntoVentaDAOImpl implements InformeVentasPuntoVentaDAO {
|
public class InformeVentasPuntoVentaDAOImpl implements InformeVentasPuntoVentaDAO {
|
||||||
|
|
||||||
private static final Logger log = Logger.getLogger(InformeVentasPuntoVentaDAOImpl.class);
|
private static final Logger log = LogManager.getLogger(InformeVentasPuntoVentaDAOImpl.class);
|
||||||
|
|
||||||
private String getSql(PuntoVenta puntoVenta, Date dataInicio, Date dataFinal) {
|
private String getSql(PuntoVenta puntoVenta, Date dataInicio, Date dataFinal) {
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.hibernate.jdbc.Work;
|
import org.hibernate.jdbc.Work;
|
||||||
|
@ -31,7 +32,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
@Repository("monitoramentoCCFDAO")
|
@Repository("monitoramentoCCFDAO")
|
||||||
public class MonitoramentoCCFHibernateDAO extends GenericHibernateDAO<MonitoramentoCCF, Integer>
|
public class MonitoramentoCCFHibernateDAO extends GenericHibernateDAO<MonitoramentoCCF, Integer>
|
||||||
implements MonitoramentoCCFDAO {
|
implements MonitoramentoCCFDAO {
|
||||||
private static Logger log = Logger.getLogger(MonitoramentoCCFHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(MonitoramentoCCFHibernateDAO.class);
|
||||||
private Connection con;
|
private Connection con;
|
||||||
Boolean jaexiste;
|
Boolean jaexiste;
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.hibernate.jdbc.Work;
|
import org.hibernate.jdbc.Work;
|
||||||
|
@ -31,7 +32,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
@Repository("monitoramentoCRZDAO")
|
@Repository("monitoramentoCRZDAO")
|
||||||
public class MonitoramentoCRZHibernateDAO extends GenericHibernateDAO<MonitoramentoCRZ, Integer>
|
public class MonitoramentoCRZHibernateDAO extends GenericHibernateDAO<MonitoramentoCRZ, Integer>
|
||||||
implements MonitoramentoCRZDAO {
|
implements MonitoramentoCRZDAO {
|
||||||
private static Logger log = Logger.getLogger(MonitoramentoCRZHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(MonitoramentoCRZHibernateDAO.class);
|
||||||
Boolean jaexiste;
|
Boolean jaexiste;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -8,7 +8,8 @@ import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.commons.collections.Predicate;
|
import org.apache.commons.collections.Predicate;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.hibernate.transform.ResultTransformer;
|
import org.hibernate.transform.ResultTransformer;
|
||||||
|
@ -45,7 +46,7 @@ import com.rjconsultores.ventaboletos.vo.via.ViaVO;
|
||||||
@SuppressWarnings({"unchecked", "rawtypes"})
|
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||||
public class OperadorEmbarcadaServicoHibernateDAO extends GenericHibernateDAO<OperadorEmbarcadaServico, Long> implements OperadorEmbarcadaServicoDAO {
|
public class OperadorEmbarcadaServicoHibernateDAO extends GenericHibernateDAO<OperadorEmbarcadaServico, Long> implements OperadorEmbarcadaServicoDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(OperadorEmbarcadaServicoHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(OperadorEmbarcadaServicoHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private CategoriaDescuentoDAO categoriaDescuentoDAO;
|
private CategoriaDescuentoDAO categoriaDescuentoDAO;
|
||||||
|
|
|
@ -10,7 +10,8 @@ import com.rjconsultores.ventaboletos.entidad.PricingDia;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
|
@ -27,7 +28,7 @@ import org.springframework.stereotype.Repository;
|
||||||
public class PricingDiaHibernateDAO extends GenericHibernateDAO<PricingDia, Integer>
|
public class PricingDiaHibernateDAO extends GenericHibernateDAO<PricingDia, Integer>
|
||||||
implements PricingDiaDAO {
|
implements PricingDiaDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(PricingDiaHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(PricingDiaHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public PricingDiaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public PricingDiaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
|
|
@ -17,7 +17,8 @@ import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.apache.commons.lang.BooleanUtils;
|
import org.apache.commons.lang.BooleanUtils;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@ -30,7 +31,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
@Repository("receitaDespesaDAO")
|
@Repository("receitaDespesaDAO")
|
||||||
public class ReceitaDespesaHibernateDAO implements ReceitaDespesaDAO {
|
public class ReceitaDespesaHibernateDAO implements ReceitaDespesaDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ReceitaDespesaHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(ReceitaDespesaHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSourceRead;
|
private DataSource dataSourceRead;
|
||||||
|
|
|
@ -10,7 +10,8 @@ import com.rjconsultores.ventaboletos.entidad.RedondeoMarca;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
|
@ -27,7 +28,7 @@ import org.springframework.stereotype.Repository;
|
||||||
public class RedondeoCtrlHibernateDAO extends GenericHibernateDAO<RedondeoCtrl, Integer>
|
public class RedondeoCtrlHibernateDAO extends GenericHibernateDAO<RedondeoCtrl, Integer>
|
||||||
implements RedondeoCtrlDAO {
|
implements RedondeoCtrlDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(RedondeoCtrlHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(RedondeoCtrlHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public RedondeoCtrlHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public RedondeoCtrlHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
|
|
@ -13,7 +13,8 @@ import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.hibernate.transform.AliasToBeanResultTransformer;
|
import org.hibernate.transform.AliasToBeanResultTransformer;
|
||||||
|
@ -82,7 +83,7 @@ public class RemessaCNABBancosHibernateDAO extends GenericHibernateDAO<Fechament
|
||||||
private static final String DATA_DE = "dataDe";
|
private static final String DATA_DE = "dataDe";
|
||||||
private static final String EMPRESA_ID = "empresaId";
|
private static final String EMPRESA_ID = "empresaId";
|
||||||
private static final String ZERO_ESQUERDA = "00000000";
|
private static final String ZERO_ESQUERDA = "00000000";
|
||||||
private static Logger log = Logger.getLogger(RemessaCNABBancosHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(RemessaCNABBancosHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public RemessaCNABBancosHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public RemessaCNABBancosHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
|
|
@ -15,7 +15,8 @@ import org.apache.commons.dbutils.QueryRunner;
|
||||||
import org.apache.commons.dbutils.ResultSetHandler;
|
import org.apache.commons.dbutils.ResultSetHandler;
|
||||||
import org.apache.commons.dbutils.handlers.BeanListHandler;
|
import org.apache.commons.dbutils.handlers.BeanListHandler;
|
||||||
import org.apache.commons.lang.math.NumberUtils;
|
import org.apache.commons.lang.math.NumberUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@ -29,7 +30,7 @@ import com.rjconsultores.ventaboletos.relatorios.PrefixoAntt;
|
||||||
public class SisdapHibernateDAO implements SisdapDAO {
|
public class SisdapHibernateDAO implements SisdapDAO {
|
||||||
|
|
||||||
private static String HYPHEN = "-";
|
private static String HYPHEN = "-";
|
||||||
private static Logger log = Logger.getLogger(SisdapHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(SisdapHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSourceRead;
|
private DataSource dataSourceRead;
|
||||||
|
|
|
@ -6,7 +6,8 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SQLQuery;
|
import org.hibernate.SQLQuery;
|
||||||
|
@ -36,7 +37,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
@Repository("tarifaEmbarcadaDAO")
|
@Repository("tarifaEmbarcadaDAO")
|
||||||
public class TarifaEmbarcadaHibernateDAO extends GenericHibernateDAO<TarifaEmbarcada, Integer> implements TarifaEmbarcadaDAO {
|
public class TarifaEmbarcadaHibernateDAO extends GenericHibernateDAO<TarifaEmbarcada, Integer> implements TarifaEmbarcadaDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(TarifaEmbarcadaHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(TarifaEmbarcadaHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public TarifaEmbarcadaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public TarifaEmbarcadaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
|
|
@ -7,7 +7,8 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.lang.Validate;
|
import org.apache.commons.lang.Validate;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SQLQuery;
|
import org.hibernate.SQLQuery;
|
||||||
|
@ -51,7 +52,7 @@ import com.rjconsultores.ventaboletos.vo.comissao.TarifaVO;
|
||||||
@Repository("tarifaDAO")
|
@Repository("tarifaDAO")
|
||||||
public class TarifaHibernateDAO extends GenericHibernateDAO<Tarifa, Integer> implements TarifaDAO {
|
public class TarifaHibernateDAO extends GenericHibernateDAO<Tarifa, Integer> implements TarifaDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(TarifaHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(TarifaHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public TarifaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public TarifaHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
|
|
@ -6,7 +6,8 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
|
@ -32,7 +33,7 @@ import com.rjconsultores.ventaboletos.entidad.Via;
|
||||||
public class TramoServicioHibernateDAO extends GenericHibernateDAO<TramoServicio, Integer>
|
public class TramoServicioHibernateDAO extends GenericHibernateDAO<TramoServicio, Integer>
|
||||||
implements TramoServicioDAO {
|
implements TramoServicioDAO {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(TramoServicioHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(TramoServicioHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public TramoServicioHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public TramoServicioHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
|
|
@ -6,7 +6,8 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
import org.hibernate.Query;
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
|
@ -25,7 +26,7 @@ import com.rjconsultores.ventaboletos.entidad.UsuarioSesion;
|
||||||
*/
|
*/
|
||||||
@Repository("usuarioSesionDAO")
|
@Repository("usuarioSesionDAO")
|
||||||
public class UsuarioSesionHibernateDAO extends GenericHibernateDAO<UsuarioSesion, Integer> implements UsuarioSesionDAO {
|
public class UsuarioSesionHibernateDAO extends GenericHibernateDAO<UsuarioSesion, Integer> implements UsuarioSesionDAO {
|
||||||
private static Logger log = Logger.getLogger(UsuarioSesionHibernateDAO.class);
|
private static final Logger log = LogManager.getLogger(UsuarioSesionHibernateDAO.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public UsuarioSesionHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
public UsuarioSesionHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
package com.rjconsultores.ventaboletos.dao.sqlbuilder;
|
package com.rjconsultores.ventaboletos.dao.sqlbuilder;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.dao.sqlbuilder.impl.SQLBuilderOracle;
|
import com.rjconsultores.ventaboletos.dao.sqlbuilder.impl.SQLBuilderOracle;
|
||||||
import com.rjconsultores.ventaboletos.dao.util.DBUtil;
|
import com.rjconsultores.ventaboletos.dao.util.DBUtil;
|
||||||
|
|
||||||
public class SQLFactory {
|
public class SQLFactory {
|
||||||
private static Logger log = Logger.getLogger(SQLFactory.class);
|
private static final Logger log = LogManager.getLogger(SQLFactory.class);
|
||||||
|
|
||||||
public SQLBuilder getBuilder() {
|
public SQLBuilder getBuilder() {
|
||||||
if (DBUtil.getInstance().isOracle()) {
|
if (DBUtil.getInstance().isOracle()) {
|
||||||
|
|
|
@ -2,7 +2,8 @@ package com.rjconsultores.ventaboletos.dao.util;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
import org.hibernate.engine.SessionImplementor;
|
import org.hibernate.engine.SessionImplementor;
|
||||||
import org.hibernate.id.IdentifierGenerator;
|
import org.hibernate.id.IdentifierGenerator;
|
||||||
|
@ -17,7 +18,7 @@ import org.hibernate.id.IdentifierGenerator;
|
||||||
*/
|
*/
|
||||||
public class AidfGenerator implements IdentifierGenerator {
|
public class AidfGenerator implements IdentifierGenerator {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(AidfGenerator.class);
|
private static final Logger log = LogManager.getLogger(AidfGenerator.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Serializable generate(SessionImplementor session, Object object) throws HibernateException {
|
public Serializable generate(SessionImplementor session, Object object) throws HibernateException {
|
||||||
|
|
|
@ -2,13 +2,14 @@ package com.rjconsultores.ventaboletos.dao.util;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
import org.hibernate.engine.SessionImplementor;
|
import org.hibernate.engine.SessionImplementor;
|
||||||
import org.hibernate.id.IdentifierGenerator;
|
import org.hibernate.id.IdentifierGenerator;
|
||||||
|
|
||||||
public class ClaseServicioGenerator implements IdentifierGenerator {
|
public class ClaseServicioGenerator implements IdentifierGenerator {
|
||||||
private static Logger log = Logger.getLogger(ClaseServicioGenerator.class);
|
private static final Logger log = LogManager.getLogger(ClaseServicioGenerator.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Serializable generate(SessionImplementor session, Object object) throws HibernateException {
|
public Serializable generate(SessionImplementor session, Object object) throws HibernateException {
|
||||||
|
|
|
@ -6,12 +6,13 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
|
|
||||||
public class ClaseServicioStore {
|
public class ClaseServicioStore {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ClaseServicioStore.class);
|
private static final Logger log = LogManager.getLogger(ClaseServicioStore.class);
|
||||||
private static ClaseServicioStore INSTANCE = new ClaseServicioStore();
|
private static ClaseServicioStore INSTANCE = new ClaseServicioStore();
|
||||||
protected int qtdMaxima = 99;
|
protected int qtdMaxima = 99;
|
||||||
|
|
||||||
|
|
|
@ -4,13 +4,14 @@ import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
|
||||||
public class DBUtil {
|
public class DBUtil {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(DBUtil.class);
|
private static final Logger log = LogManager.getLogger(DBUtil.class);
|
||||||
private static DBUtil INSTANCE;
|
private static DBUtil INSTANCE;
|
||||||
private static Properties p;
|
private static Properties p;
|
||||||
private SessionFactory sessionFactory;
|
private SessionFactory sessionFactory;
|
||||||
|
|
|
@ -2,7 +2,8 @@ package com.rjconsultores.ventaboletos.dao.util;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
import org.hibernate.engine.SessionImplementor;
|
import org.hibernate.engine.SessionImplementor;
|
||||||
import org.hibernate.id.IdentifierGenerator;
|
import org.hibernate.id.IdentifierGenerator;
|
||||||
|
@ -14,7 +15,7 @@ import org.hibernate.id.IdentifierGenerator;
|
||||||
*/
|
*/
|
||||||
public class FormaPagoGenerator implements IdentifierGenerator {
|
public class FormaPagoGenerator implements IdentifierGenerator {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(FormaPagoGenerator.class);
|
private static final Logger log = LogManager.getLogger(FormaPagoGenerator.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Short generate(SessionImplementor session, Object object) throws HibernateException {
|
public Short generate(SessionImplementor session, Object object) throws HibernateException {
|
||||||
|
|
|
@ -7,7 +7,8 @@ import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
/**
|
/**
|
||||||
* Classe que trata a geração do ID da tabela Aidf.
|
* Classe que trata a geração do ID da tabela Aidf.
|
||||||
|
@ -20,7 +21,7 @@ import org.hibernate.HibernateException;
|
||||||
*/
|
*/
|
||||||
public class IdAidfStore {
|
public class IdAidfStore {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(IdAidfStore.class);
|
private static final Logger log = LogManager.getLogger(IdAidfStore.class);
|
||||||
|
|
||||||
private static final String LIMITE_ID_AIDF = "LIMITE_ID_AIDF";
|
private static final String LIMITE_ID_AIDF = "LIMITE_ID_AIDF";
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,8 @@ import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,7 +18,7 @@ import org.hibernate.HibernateException;
|
||||||
*/
|
*/
|
||||||
public class IdFormaPagoStore {
|
public class IdFormaPagoStore {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(IdFormaPagoStore.class);
|
private static final Logger log = LogManager.getLogger(IdFormaPagoStore.class);
|
||||||
|
|
||||||
private static final String LIMITE_ID_FORMA_PAGTO = "LIMITE_ID_FORMA_PAGTO";
|
private static final String LIMITE_ID_FORMA_PAGTO = "LIMITE_ID_FORMA_PAGTO";
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,8 @@ import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,7 +18,7 @@ import org.hibernate.HibernateException;
|
||||||
*/
|
*/
|
||||||
public class IdTipoParadaStore {
|
public class IdTipoParadaStore {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(IdTipoParadaStore.class);
|
private static final Logger log = LogManager.getLogger(IdTipoParadaStore.class);
|
||||||
|
|
||||||
private static final String LIMITE_ID_TIPO_PARADA = "LIMITE_ID_TIPO_PARADA";
|
private static final String LIMITE_ID_TIPO_PARADA = "LIMITE_ID_TIPO_PARADA";
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@ package com.rjconsultores.ventaboletos.dao.util;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.hibernate.HibernateException;
|
import org.hibernate.HibernateException;
|
||||||
import org.hibernate.engine.SessionImplementor;
|
import org.hibernate.engine.SessionImplementor;
|
||||||
import org.hibernate.id.IdentifierGenerator;
|
import org.hibernate.id.IdentifierGenerator;
|
||||||
|
@ -14,7 +15,7 @@ import org.hibernate.id.IdentifierGenerator;
|
||||||
*/
|
*/
|
||||||
public class TipoParadaGenerator implements IdentifierGenerator {
|
public class TipoParadaGenerator implements IdentifierGenerator {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(TipoParadaGenerator.class);
|
private static final Logger log = LogManager.getLogger(TipoParadaGenerator.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Short generate(SessionImplementor session, Object object) throws HibernateException {
|
public Short generate(SessionImplementor session, Object object) throws HibernateException {
|
||||||
|
|
|
@ -12,7 +12,8 @@ import org.apache.http.client.methods.HttpPost;
|
||||||
import org.apache.http.client.methods.HttpUriRequest;
|
import org.apache.http.client.methods.HttpUriRequest;
|
||||||
import org.apache.http.impl.client.DefaultHttpClient;
|
import org.apache.http.impl.client.DefaultHttpClient;
|
||||||
import org.apache.http.util.EntityUtils;
|
import org.apache.http.util.EntityUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.codehaus.jettison.json.JSONException;
|
import org.codehaus.jettison.json.JSONException;
|
||||||
import org.codehaus.jettison.json.JSONObject;
|
import org.codehaus.jettison.json.JSONObject;
|
||||||
import org.zkoss.zkplus.spring.SpringUtil;
|
import org.zkoss.zkplus.spring.SpringUtil;
|
||||||
|
@ -34,7 +35,7 @@ public class ContingenciaClienteRest {
|
||||||
private static final String PATH_CONSULTA_STATUS = "/BPeRS/rest/adm/contingencia/tipoEmissaoEmpresa";
|
private static final String PATH_CONSULTA_STATUS = "/BPeRS/rest/adm/contingencia/tipoEmissaoEmpresa";
|
||||||
private static final String PATH_DEFINIR_STATUS = "/BPeRS/rest/adm/contingencia/definirTipoEmissaoEmpresa";
|
private static final String PATH_DEFINIR_STATUS = "/BPeRS/rest/adm/contingencia/definirTipoEmissaoEmpresa";
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ContingenciaClienteRest.class);
|
private static final Logger log = LogManager.getLogger(ContingenciaClienteRest.class);
|
||||||
|
|
||||||
private static ContingenciaClienteRest instance;
|
private static ContingenciaClienteRest instance;
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@ import org.apache.http.client.methods.HttpUriRequest;
|
||||||
import org.apache.http.entity.StringEntity;
|
import org.apache.http.entity.StringEntity;
|
||||||
import org.apache.http.impl.client.HttpClientBuilder;
|
import org.apache.http.impl.client.HttpClientBuilder;
|
||||||
import org.apache.http.util.EntityUtils;
|
import org.apache.http.util.EntityUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.codehaus.jettison.json.JSONObject;
|
import org.codehaus.jettison.json.JSONObject;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.enums.TipoEnvioRest;
|
import com.rjconsultores.ventaboletos.enums.TipoEnvioRest;
|
||||||
|
@ -18,7 +19,7 @@ import com.rjconsultores.ventaboletos.vo.integracao.FechamentoCntCorrenteVO;
|
||||||
|
|
||||||
public class IntegracaoSapRest {
|
public class IntegracaoSapRest {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(IntegracaoSapRest.class);
|
private static final Logger log = LogManager.getLogger(IntegracaoSapRest.class);
|
||||||
|
|
||||||
private static IntegracaoSapRest instance;
|
private static IntegracaoSapRest instance;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,8 @@ import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.commons.lang.WordUtils;
|
import org.apache.commons.lang.WordUtils;
|
||||||
import org.apache.http.HttpStatus;
|
import org.apache.http.HttpStatus;
|
||||||
import org.apache.http.entity.ContentType;
|
import org.apache.http.entity.ContentType;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
@ -22,7 +23,7 @@ import com.rjconsultores.ventaboletos.vo.mercadopago.StoreVO.Location;
|
||||||
|
|
||||||
public class MercadoPagoService {
|
public class MercadoPagoService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(MercadoPagoService.class);
|
private static final Logger log = LogManager.getLogger(MercadoPagoService.class);
|
||||||
|
|
||||||
private static MercadoPagoService instance;
|
private static MercadoPagoService instance;
|
||||||
|
|
||||||
|
|
|
@ -18,14 +18,15 @@ import org.apache.http.entity.ContentType;
|
||||||
import org.apache.http.entity.StringEntity;
|
import org.apache.http.entity.StringEntity;
|
||||||
import org.apache.http.impl.client.HttpClientBuilder;
|
import org.apache.http.impl.client.HttpClientBuilder;
|
||||||
import org.apache.http.util.EntityUtils;
|
import org.apache.http.util.EntityUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.rjconsultores.ventaboletos.enums.TipoEnvioRest;
|
import com.rjconsultores.ventaboletos.enums.TipoEnvioRest;
|
||||||
|
|
||||||
public class GenericRest {
|
public class GenericRest {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(GenericRest.class);
|
private static final Logger log = LogManager.getLogger(GenericRest.class);
|
||||||
|
|
||||||
private static GenericRest instance;
|
private static GenericRest instance;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,8 @@ import java.util.Map;
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.jdbc.datasource.DataSourceUtils;
|
import org.springframework.jdbc.datasource.DataSourceUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
@ -30,7 +31,7 @@ import com.rjconsultores.ventaboletos.vo.bpe.BPeVO;
|
||||||
|
|
||||||
@Service("bpeService")
|
@Service("bpeService")
|
||||||
public class BpeServiceImpl implements BpeService {
|
public class BpeServiceImpl implements BpeService {
|
||||||
private static Logger log = Logger.getLogger(BpeServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(BpeServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BpeDAO bpeDAO;
|
private BpeDAO bpeDAO;
|
||||||
|
|
|
@ -7,7 +7,8 @@ package com.rjconsultores.ventaboletos.service.impl;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -27,7 +28,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
@Service("ciudadService")
|
@Service("ciudadService")
|
||||||
public class CiudadServiceImpl implements CiudadService {
|
public class CiudadServiceImpl implements CiudadService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(CiudadServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(CiudadServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private CiudadDAO ciudadDAO;
|
private CiudadDAO ciudadDAO;
|
||||||
|
|
|
@ -3,7 +3,8 @@ package com.rjconsultores.ventaboletos.service.impl;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -28,7 +29,7 @@ public class CoeficienteTarifaServiceImpl implements CoeficienteTarifaService {
|
||||||
private OrgaoTramoDAO orgaoTramoDAO;
|
private OrgaoTramoDAO orgaoTramoDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private LogAuditoriaService logAuditoriaService;
|
private LogAuditoriaService logAuditoriaService;
|
||||||
private static Logger log = Logger.getLogger(OrgaoConcedenteServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(OrgaoConcedenteServiceImpl.class);
|
||||||
|
|
||||||
|
|
||||||
public List<CoeficienteTarifa> obtenerTodos() {
|
public List<CoeficienteTarifa> obtenerTodos() {
|
||||||
|
|
|
@ -4,7 +4,8 @@ import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
|
@ -13,7 +13,8 @@ import java.util.Set;
|
||||||
|
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Propagation;
|
import org.springframework.transaction.annotation.Propagation;
|
||||||
|
@ -62,7 +63,7 @@ public class ConferenciaComissaoServiceImpl implements ConferenciaComissaoServic
|
||||||
private static final String SMTP_PORT = "SMTP_PORT";
|
private static final String SMTP_PORT = "SMTP_PORT";
|
||||||
private static final String SMTP_PASS = "SMTP_PASS";
|
private static final String SMTP_PASS = "SMTP_PASS";
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ConferenciaComissaoService.class);
|
private static final Logger log = LogManager.getLogger(ConferenciaComissaoService.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ConferenciaComissaoDAO conferenciaComissaoDAO;
|
private ConferenciaComissaoDAO conferenciaComissaoDAO;
|
||||||
|
|
|
@ -10,7 +10,8 @@ import javax.mail.SendFailedException;
|
||||||
|
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -43,7 +44,7 @@ public class ContingenciaServiceImpl implements ContingenciaService {
|
||||||
|
|
||||||
private static final String EMAIL_SUPORTE_SCO_RJCONSULTORES = "EMAIL_SUPORTE_RJCONSULTORES";
|
private static final String EMAIL_SUPORTE_SCO_RJCONSULTORES = "EMAIL_SUPORTE_RJCONSULTORES";
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ContingenciaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(ContingenciaServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private LogHistoricoContingenciaDAO histContingenciaDAO;
|
private LogHistoricoContingenciaDAO histContingenciaDAO;
|
||||||
|
|
|
@ -17,7 +17,8 @@ import javax.persistence.Transient;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.commons.lang.math.NumberUtils;
|
import org.apache.commons.lang.math.NumberUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Qualifier;
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
@ -95,7 +96,7 @@ import com.rjconsultores.ventaboletos.utilerias.UtiliteriasFiscal;
|
||||||
@Service("corridaService")
|
@Service("corridaService")
|
||||||
public class CorridaServiceImpl implements CorridaService {
|
public class CorridaServiceImpl implements CorridaService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(CorridaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(CorridaServiceImpl.class);
|
||||||
private static int CANT_MAX_CORRIDA_GERA_MANUAL = 40;
|
private static int CANT_MAX_CORRIDA_GERA_MANUAL = 40;
|
||||||
private static SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
|
private static SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
|
||||||
// Tipo de venda Reserva
|
// Tipo de venda Reserva
|
||||||
|
|
|
@ -3,7 +3,8 @@ package com.rjconsultores.ventaboletos.service.impl;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -17,7 +18,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
@Service("cotacaoService")
|
@Service("cotacaoService")
|
||||||
public class CotacaoServiceImpl implements CotacaoService {
|
public class CotacaoServiceImpl implements CotacaoService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(CotacaoServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(CotacaoServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private CotacaoDAO cotacaoDAO;
|
private CotacaoDAO cotacaoDAO;
|
||||||
|
|
|
@ -4,7 +4,8 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -18,7 +19,7 @@ import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
@Service("ctrlFechamentoCaixaService")
|
@Service("ctrlFechamentoCaixaService")
|
||||||
public class CtrlFechamentoCaixaServiceImpl implements CtrlFechamentoCaixaService {
|
public class CtrlFechamentoCaixaServiceImpl implements CtrlFechamentoCaixaService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(CtrlFechamentoCaixaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(CtrlFechamentoCaixaServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
CtrlFechamentoCaixaDAO ctrlFechamentoCaixaDAO;
|
CtrlFechamentoCaixaDAO ctrlFechamentoCaixaDAO;
|
||||||
|
|
|
@ -7,7 +7,8 @@ package com.rjconsultores.ventaboletos.service.impl;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -50,7 +51,7 @@ public class EmpresaServiceImpl implements EmpresaService {
|
||||||
private EsquemaCorridaDAO esquemaCorridaDAO;
|
private EsquemaCorridaDAO esquemaCorridaDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private LogAuditoriaService logAuditoriaService;
|
private LogAuditoriaService logAuditoriaService;
|
||||||
private static Logger log = Logger.getLogger(EmpresaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(EmpresaServiceImpl.class);
|
||||||
|
|
||||||
|
|
||||||
public List<Empresa> obtenerTodos() {
|
public List<Empresa> obtenerTodos() {
|
||||||
|
|
|
@ -9,7 +9,8 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -44,7 +45,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
@Service("esquemaCorridaService")
|
@Service("esquemaCorridaService")
|
||||||
public class EsquemaCorridaServiceImpl implements EsquemaCorridaService {
|
public class EsquemaCorridaServiceImpl implements EsquemaCorridaService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(EsquemaCorridaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(EsquemaCorridaServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private EsquemaCorridaDAO esquemaCorridaDAO;
|
private EsquemaCorridaDAO esquemaCorridaDAO;
|
||||||
|
|
|
@ -3,7 +3,8 @@ package com.rjconsultores.ventaboletos.service.impl;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -22,7 +23,7 @@ public class FechamentoParamptovtaServiceImpl implements FechamentoParamptovtaSe
|
||||||
private FechamentoParamptovtaDAO fechamentoParamptovtaDAO;
|
private FechamentoParamptovtaDAO fechamentoParamptovtaDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private LogAuditoriaService logAuditoriaService;
|
private LogAuditoriaService logAuditoriaService;
|
||||||
private static Logger log = Logger.getLogger(FechamentoParamptovtaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(FechamentoParamptovtaServiceImpl.class);
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -19,7 +19,8 @@ import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFRow;
|
import org.apache.poi.hssf.usermodel.HSSFRow;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
|
@ -68,7 +69,7 @@ import com.rjconsultores.ventaboletos.vo.impressaofiscal.LeitorNaoFiscalVO;
|
||||||
|
|
||||||
@Service("fiscalService")
|
@Service("fiscalService")
|
||||||
public class FiscalServiceImpl implements FiscalService {
|
public class FiscalServiceImpl implements FiscalService {
|
||||||
private static Logger log = Logger.getLogger(FiscalServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(FiscalServiceImpl.class);
|
||||||
|
|
||||||
public static final String DATE_FORMAT_FISCAL = "yyyyMMdd";
|
public static final String DATE_FORMAT_FISCAL = "yyyyMMdd";
|
||||||
public static final BigDecimal CEM = BigDecimal.valueOf(100);
|
public static final BigDecimal CEM = BigDecimal.valueOf(100);
|
||||||
|
|
|
@ -15,7 +15,8 @@ import java.util.Map;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.zkoss.util.media.AMedia;
|
import org.zkoss.util.media.AMedia;
|
||||||
|
@ -40,7 +41,7 @@ public class FormaPagamentoAgenciaServiceImpl implements FormaPagamentoAgenciaSe
|
||||||
private FormaPagamentoAgenciaDAO financeiroDAO;
|
private FormaPagamentoAgenciaDAO financeiroDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSource;
|
private DataSource dataSource;
|
||||||
private static final Logger log = Logger.getLogger(FormaPagamentoAgenciaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(FormaPagamentoAgenciaServiceImpl.class);
|
||||||
|
|
||||||
public AMedia gerarInforme(InputStream informe, Map parameters) throws BusinessException {
|
public AMedia gerarInforme(InputStream informe, Map parameters) throws BusinessException {
|
||||||
Connection conn = null;
|
Connection conn = null;
|
||||||
|
|
|
@ -6,7 +6,8 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -24,7 +25,7 @@ public class GP_PricingHistoricoServiceImpl implements GP_PricingHistoricoServic
|
||||||
@Autowired
|
@Autowired
|
||||||
private GP_PricingHistoricoDAO pricingHistoricoDAO;
|
private GP_PricingHistoricoDAO pricingHistoricoDAO;
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(GP_PricingHistoricoServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(GP_PricingHistoricoServiceImpl.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
|
|
|
@ -13,7 +13,8 @@ import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
import org.apache.poi.ss.usermodel.Cell;
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
import org.apache.poi.ss.usermodel.Row;
|
import org.apache.poi.ss.usermodel.Row;
|
||||||
|
@ -54,7 +55,7 @@ public class ImportacaoClientesServiceImpl implements ImportacaoClientesService
|
||||||
@Autowired
|
@Autowired
|
||||||
private ClienteService clienteService;
|
private ClienteService clienteService;
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ImportacaoClientesServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(ImportacaoClientesServiceImpl.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] lerArquivo(Reader reader, List<Empresa> empresas) {
|
public String[] lerArquivo(Reader reader, List<Empresa> empresas) {
|
||||||
|
|
|
@ -13,7 +13,8 @@ import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
import org.apache.poi.ss.usermodel.Cell;
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
import org.apache.poi.ss.usermodel.Row;
|
import org.apache.poi.ss.usermodel.Row;
|
||||||
|
@ -49,7 +50,7 @@ public class ImportacaoClientesSrvpServiceImpl implements ImportacaoClientesSrvp
|
||||||
TipoIdentificacionService tipoIdentificacionService;
|
TipoIdentificacionService tipoIdentificacionService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private ClienteService clienteService;
|
private ClienteService clienteService;
|
||||||
private static Logger log = Logger.getLogger(ImportacaoClientesSrvpServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(ImportacaoClientesSrvpServiceImpl.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] lerArquivo(Reader reader, List<Empresa> empresas) {
|
public String[] lerArquivo(Reader reader, List<Empresa> empresas) {
|
||||||
|
|
|
@ -7,7 +7,8 @@ import java.io.InputStreamReader;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@ -31,7 +32,7 @@ public class ImportacaoRetornoBancarioServiceImpl implements ImportacaoRetornoBa
|
||||||
@Autowired
|
@Autowired
|
||||||
private RemessaCNABBancosDAO remessaCNABBancosDAO;
|
private RemessaCNABBancosDAO remessaCNABBancosDAO;
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ImportacaoRetornoBancarioServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(ImportacaoRetornoBancarioServiceImpl.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String lerArquivo(ByteArrayInputStream bais, Empresa empresa){
|
public String lerArquivo(ByteArrayInputStream bais, Empresa empresa){
|
||||||
|
|
|
@ -15,7 +15,8 @@ import java.util.Map;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.zkoss.util.media.AMedia;
|
import org.zkoss.util.media.AMedia;
|
||||||
|
@ -41,7 +42,7 @@ public class InformeCategoriaVentaServiceImpl implements InformeCategoriaVentaSe
|
||||||
private InformeCategoriaVentaDAO informeCategoriaVentaDAO;
|
private InformeCategoriaVentaDAO informeCategoriaVentaDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSource;
|
private DataSource dataSource;
|
||||||
private static final Logger log = Logger.getLogger(InformeCategoriaVentaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(InformeCategoriaVentaServiceImpl.class);
|
||||||
|
|
||||||
public AMedia gerarInforme(InputStream informe, Map parameters) throws BusinessException{
|
public AMedia gerarInforme(InputStream informe, Map parameters) throws BusinessException{
|
||||||
Connection conn = null;
|
Connection conn = null;
|
||||||
|
|
|
@ -15,7 +15,8 @@ import java.util.Map;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.zkoss.util.media.AMedia;
|
import org.zkoss.util.media.AMedia;
|
||||||
|
@ -41,7 +42,7 @@ public class InformePasajeroServicioServiceImpl implements InformePasajeroServic
|
||||||
private InformePasajeroServicioDAO informePasajeroServicioDAO;
|
private InformePasajeroServicioDAO informePasajeroServicioDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSource;
|
private DataSource dataSource;
|
||||||
private static final Logger log = Logger.getLogger(InformePasajeroServicioServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(InformePasajeroServicioServiceImpl.class);
|
||||||
|
|
||||||
public AMedia gerarInforme(InputStream informe, Map parameters) throws BusinessException {
|
public AMedia gerarInforme(InputStream informe, Map parameters) throws BusinessException {
|
||||||
Connection conn = null;
|
Connection conn = null;
|
||||||
|
|
|
@ -20,7 +20,8 @@ import net.sf.jasperreports.engine.JRException;
|
||||||
import net.sf.jasperreports.engine.JRResultSetDataSource;
|
import net.sf.jasperreports.engine.JRResultSetDataSource;
|
||||||
import net.sf.jasperreports.engine.JasperRunManager;
|
import net.sf.jasperreports.engine.JasperRunManager;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.zkoss.util.media.AMedia;
|
import org.zkoss.util.media.AMedia;
|
||||||
|
@ -41,7 +42,7 @@ public class InformeServicioDiarioServiceImpl implements InformeServicioDiarioSe
|
||||||
private InformeServicioDiarioDAO informeServicioDiarioDAO;
|
private InformeServicioDiarioDAO informeServicioDiarioDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSource;
|
private DataSource dataSource;
|
||||||
private static final Logger log = Logger.getLogger(InformeServicioDiarioServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(InformeServicioDiarioServiceImpl.class);
|
||||||
|
|
||||||
public AMedia gerarInforme(InputStream informe, Map parameters) throws BusinessException {
|
public AMedia gerarInforme(InputStream informe, Map parameters) throws BusinessException {
|
||||||
AMedia amedia = null;
|
AMedia amedia = null;
|
||||||
|
|
|
@ -20,7 +20,8 @@ import net.sf.jasperreports.engine.JRException;
|
||||||
import net.sf.jasperreports.engine.JRResultSetDataSource;
|
import net.sf.jasperreports.engine.JRResultSetDataSource;
|
||||||
import net.sf.jasperreports.engine.JasperRunManager;
|
import net.sf.jasperreports.engine.JasperRunManager;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.zkoss.util.media.AMedia;
|
import org.zkoss.util.media.AMedia;
|
||||||
|
@ -40,7 +41,7 @@ public class InformeVentasPuntoVentaServiceImpl implements InformeVentasPuntoVen
|
||||||
private InformeVentasPuntoVentaDAO informeVentasPuntoVentaDAO;
|
private InformeVentasPuntoVentaDAO informeVentasPuntoVentaDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSource;
|
private DataSource dataSource;
|
||||||
private static final Logger log = Logger.getLogger(InformeVentasPuntoVentaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(InformeVentasPuntoVentaServiceImpl.class);
|
||||||
|
|
||||||
public AMedia gerarInforme(InputStream informe, Map parameters) throws BusinessException {
|
public AMedia gerarInforme(InputStream informe, Map parameters) throws BusinessException {
|
||||||
Connection conn = null;
|
Connection conn = null;
|
||||||
|
|
|
@ -9,7 +9,8 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@ -23,7 +24,7 @@ import com.rjconsultores.ventaboletos.vo.exportacao.QdmpDerLinhaVo;
|
||||||
|
|
||||||
@Service("integracaoService")
|
@Service("integracaoService")
|
||||||
public class IntegracaoServiceImpl implements IntegracaoService {
|
public class IntegracaoServiceImpl implements IntegracaoService {
|
||||||
private static Logger log = Logger.getLogger(IntegracaoServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(IntegracaoServiceImpl.class);
|
||||||
|
|
||||||
public static final String DATE_FORMAT_FISCAL = "yyyyMMdd";
|
public static final String DATE_FORMAT_FISCAL = "yyyyMMdd";
|
||||||
public static final String QUEBRA_LINHA = "\r\n";
|
public static final String QUEBRA_LINHA = "\r\n";
|
||||||
|
|
|
@ -3,7 +3,8 @@ package com.rjconsultores.ventaboletos.service.impl;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -21,7 +22,7 @@ import br.com.rjconsultores.auditador.model.AuditadorObjects;
|
||||||
@Service("LogAuditoriaService")
|
@Service("LogAuditoriaService")
|
||||||
public class LogAuditoriaServiceImpl implements LogAuditoriaService {
|
public class LogAuditoriaServiceImpl implements LogAuditoriaService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(LogAuditoriaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(LogAuditoriaServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private LogAuditoriaDAO logAuditoriaDAO;
|
private LogAuditoriaDAO logAuditoriaDAO;
|
||||||
|
|
|
@ -15,7 +15,8 @@ import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -27,7 +28,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||||
@Service("monedaService")
|
@Service("monedaService")
|
||||||
public class MonedaServiceImpl implements MonedaService {
|
public class MonedaServiceImpl implements MonedaService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(MonedaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(MonedaServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MonedaDAO monedaDAO;
|
private MonedaDAO monedaDAO;
|
||||||
|
|
|
@ -10,7 +10,8 @@ import java.util.Map.Entry;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -22,7 +23,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
|
||||||
@Service("monitoramentoCCFService")
|
@Service("monitoramentoCCFService")
|
||||||
public class MonitoramentoCCFServiceImpl implements MonitoramentoCCFService{
|
public class MonitoramentoCCFServiceImpl implements MonitoramentoCCFService{
|
||||||
private static Logger log = Logger.getLogger(MonitoramentoCCFServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(MonitoramentoCCFServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MonitoramentoCCFDAO monitoramentoCCFDAO;
|
private MonitoramentoCCFDAO monitoramentoCCFDAO;
|
||||||
|
|
|
@ -4,7 +4,8 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -16,7 +17,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
|
|
||||||
@Service("monitoramentoCRZService")
|
@Service("monitoramentoCRZService")
|
||||||
public class MonitoramentoCRZServiceImpl implements MonitoramentoCRZService{
|
public class MonitoramentoCRZServiceImpl implements MonitoramentoCRZService{
|
||||||
private static Logger log = Logger.getLogger(MonitoramentoCRZServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(MonitoramentoCRZServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MonitoramentoCRZDAO monitoramentoCRZDAO;
|
private MonitoramentoCRZDAO monitoramentoCRZDAO;
|
||||||
|
|
|
@ -3,7 +3,8 @@ package com.rjconsultores.ventaboletos.service.impl;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -21,7 +22,7 @@ public class OrgaoConcedenteServiceImpl implements OrgaoConcedenteService {
|
||||||
private OrgaoConcedenteDAO orgaoConcedenteDAO;
|
private OrgaoConcedenteDAO orgaoConcedenteDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private LogAuditoriaService logAuditoriaService;
|
private LogAuditoriaService logAuditoriaService;
|
||||||
private static Logger log = Logger.getLogger(OrgaoConcedenteServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(OrgaoConcedenteServiceImpl.class);
|
||||||
|
|
||||||
public List<OrgaoConcedente> obtenerTodos() {
|
public List<OrgaoConcedente> obtenerTodos() {
|
||||||
return orgaoConcedenteDAO.obtenerTodos();
|
return orgaoConcedenteDAO.obtenerTodos();
|
||||||
|
|
|
@ -10,7 +10,8 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -46,7 +47,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
@Service("pricingService")
|
@Service("pricingService")
|
||||||
public class PricingServiceImpl implements PricingService {
|
public class PricingServiceImpl implements PricingService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(PricingServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(PricingServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private PricingDAO pricingDAO;
|
private PricingDAO pricingDAO;
|
||||||
|
|
|
@ -31,7 +31,8 @@ import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
|
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFFont;
|
import org.apache.poi.hssf.usermodel.HSSFFont;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFRow;
|
import org.apache.poi.hssf.usermodel.HSSFRow;
|
||||||
|
@ -51,7 +52,7 @@ public class RutaCombinacionServiceImpl implements RutaCombinacionService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private RutaCombinacionDAO rutaCombinacionDAO;
|
private RutaCombinacionDAO rutaCombinacionDAO;
|
||||||
private static Logger log = Logger.getLogger(RutaCombinacionServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(RutaCombinacionServiceImpl.class);
|
||||||
private int NUM_LINHA_INICIO = 8;
|
private int NUM_LINHA_INICIO = 8;
|
||||||
|
|
||||||
public List<RutaCombinacion> obtenerTodos() {
|
public List<RutaCombinacion> obtenerTodos() {
|
||||||
|
|
|
@ -10,7 +10,8 @@ import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -66,7 +67,7 @@ public class RutaServiceImpl implements RutaService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private TramoRutaService tramoRutaService;
|
private TramoRutaService tramoRutaService;
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(RutaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(RutaServiceImpl.class);
|
||||||
|
|
||||||
public List<Ruta> obtenerTodos() {
|
public List<Ruta> obtenerTodos() {
|
||||||
return rutaDAO.obtenerTodos();
|
return rutaDAO.obtenerTodos();
|
||||||
|
|
|
@ -3,7 +3,8 @@ package com.rjconsultores.ventaboletos.service.impl;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.codehaus.jettison.json.JSONObject;
|
import org.codehaus.jettison.json.JSONObject;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
@ -27,7 +28,7 @@ public class SapServiceImpl implements SapService{
|
||||||
|
|
||||||
private static final String INTEGRACAO_SAP_URL = "INTEGRACAO_SAP_URL";
|
private static final String INTEGRACAO_SAP_URL = "INTEGRACAO_SAP_URL";
|
||||||
private static final String INTEGRACAO_SAP_CREDENCIAL = "INTEGRACAO_SAP_CREDENCIAL";
|
private static final String INTEGRACAO_SAP_CREDENCIAL = "INTEGRACAO_SAP_CREDENCIAL";
|
||||||
private static Logger log = Logger.getLogger(SapServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(SapServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SapDAO sapDAO;
|
private SapDAO sapDAO;
|
||||||
|
|
|
@ -8,7 +8,8 @@ import java.math.RoundingMode;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -36,7 +37,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
@Service("tarifaEmbarcadaService")
|
@Service("tarifaEmbarcadaService")
|
||||||
public class TarifaEmbarcadaServiceImpl implements TarifaEmbarcadaService {
|
public class TarifaEmbarcadaServiceImpl implements TarifaEmbarcadaService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(TarifaEmbarcadaService.class);
|
private static final Logger log = LogManager.getLogger(TarifaEmbarcadaService.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private TarifaEmbarcadaDAO tarifaEmbarcadaDAO;
|
private TarifaEmbarcadaDAO tarifaEmbarcadaDAO;
|
||||||
|
|
|
@ -10,7 +10,8 @@ import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -66,7 +67,7 @@ public class TarifaServiceImpl implements TarifaService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private LogAuditoriaService logAuditoriaService;
|
private LogAuditoriaService logAuditoriaService;
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(TarifaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(TarifaServiceImpl.class);
|
||||||
|
|
||||||
public List<Tarifa> obtenerTodos() {
|
public List<Tarifa> obtenerTodos() {
|
||||||
return tarifaDAO.obtenerTodos();
|
return tarifaDAO.obtenerTodos();
|
||||||
|
|
|
@ -6,7 +6,8 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -37,7 +38,7 @@ public class TarjetaViajeServiceImpl implements TarjetaViajeService {
|
||||||
private RhPagoConductorService rhPagoConductorService;
|
private RhPagoConductorService rhPagoConductorService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private RutaService rutaService;
|
private RutaService rutaService;
|
||||||
private static Logger log = Logger.getLogger(TarjetaViajeServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(TarjetaViajeServiceImpl.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<TarjetaViaje> obtenerTodos() {
|
public List<TarjetaViaje> obtenerTodos() {
|
||||||
|
|
|
@ -8,7 +8,8 @@ import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -50,7 +51,7 @@ import com.rjconsultores.ventaboletos.vo.esquemaoperacional.SecuenciaRutaTramoVO
|
||||||
@Service("tramoRutaService")
|
@Service("tramoRutaService")
|
||||||
public class TramoRutaServiceImpl implements TramoRutaService {
|
public class TramoRutaServiceImpl implements TramoRutaService {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(TramoRutaServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(TramoRutaServiceImpl.class);
|
||||||
@Autowired
|
@Autowired
|
||||||
private RutaCombinacionService rutaCombinacionService;
|
private RutaCombinacionService rutaCombinacionService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
@ -8,7 +8,8 @@ import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.dao.DataAccessException;
|
import org.springframework.dao.DataAccessException;
|
||||||
import org.springframework.security.authentication.CredentialsExpiredException;
|
import org.springframework.security.authentication.CredentialsExpiredException;
|
||||||
|
@ -48,7 +49,7 @@ public class UsuarioServiceImpl implements UsuarioService, UserDetailsService {
|
||||||
private UsuarioPerfilDAO usuarioPerfilDAO;
|
private UsuarioPerfilDAO usuarioPerfilDAO;
|
||||||
@Autowired
|
@Autowired
|
||||||
private LogAuditoriaService logAuditoriaService;
|
private LogAuditoriaService logAuditoriaService;
|
||||||
private static Logger log = Logger.getLogger(UsuarioServiceImpl.class);
|
private static final Logger log = LogManager.getLogger(UsuarioServiceImpl.class);
|
||||||
|
|
||||||
|
|
||||||
public List<Usuario> buscarPeloNome(String nome) {
|
public List<Usuario> buscarPeloNome(String nome) {
|
||||||
|
|
|
@ -12,7 +12,8 @@ import java.util.Properties;
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.beans.factory.BeanFactory;
|
import org.springframework.beans.factory.BeanFactory;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
|
@ -32,7 +33,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ApplicationProperties {
|
public class ApplicationProperties {
|
||||||
private static Logger log = Logger.getLogger(ApplicationProperties.class);
|
private static final Logger log = LogManager.getLogger(ApplicationProperties.class);
|
||||||
private static ApplicationProperties INSTANCE;
|
private static ApplicationProperties INSTANCE;
|
||||||
private static Properties p;
|
private static Properties p;
|
||||||
private static final String PATH_IMAGENES = "/com/rjconsultores/ventaboletos/web/cliente/imagenes/";
|
private static final String PATH_IMAGENES = "/com/rjconsultores/ventaboletos/web/cliente/imagenes/";
|
||||||
|
|
|
@ -6,7 +6,8 @@ import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||||
|
@ -39,7 +40,7 @@ import com.rjconsultores.ventaboletos.vo.pricing.PricingVigencia;
|
||||||
|
|
||||||
public class PricingConverterVOToEntidad {
|
public class PricingConverterVOToEntidad {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(PricingConverterVOToEntidad.class);
|
private static final Logger log = LogManager.getLogger(PricingConverterVOToEntidad.class);
|
||||||
|
|
||||||
private static PricingConverterVOToEntidad INSTANCE;
|
private static PricingConverterVOToEntidad INSTANCE;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,8 @@ package com.rjconsultores.ventaboletos.utilerias;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.security.core.Authentication;
|
import org.springframework.security.core.Authentication;
|
||||||
import org.springframework.security.core.context.SecurityContext;
|
import org.springframework.security.core.context.SecurityContext;
|
||||||
|
@ -25,7 +26,7 @@ import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil;
|
||||||
*/
|
*/
|
||||||
public class UsuarioLogado {
|
public class UsuarioLogado {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(UsuarioLogado.class);
|
private static final Logger log = LogManager.getLogger(UsuarioLogado.class);
|
||||||
|
|
||||||
public static Usuario getUsuarioLogado() {
|
public static Usuario getUsuarioLogado() {
|
||||||
Usuario usuario = null;
|
Usuario usuario = null;
|
||||||
|
|
|
@ -13,7 +13,8 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
@ -27,7 +28,7 @@ import com.rjconsultores.ventaboletos.vo.impressaofiscal.SituacaoTributaria;
|
||||||
|
|
||||||
public class ArchivoIntegracionECF {
|
public class ArchivoIntegracionECF {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ArchivoIntegracionECF.class);
|
private static final Logger log = LogManager.getLogger(ArchivoIntegracionECF.class);
|
||||||
|
|
||||||
public File importacionFiscalECFGenerico(Date inicio, Date fim, Empresa empresa, boolean isNormal, boolean isCancelados, boolean isPendencias, List<ImportacionFiscalVO> list) {
|
public File importacionFiscalECFGenerico(Date inicio, Date fim, Empresa empresa, boolean isNormal, boolean isCancelados, boolean isPendencias, List<ImportacionFiscalVO> list) {
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,8 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
@ -23,7 +24,7 @@ import com.rjconsultores.ventaboletos.vo.impressaofiscal.SubItens;
|
||||||
|
|
||||||
public class ArchivoIntegracionECFManual {
|
public class ArchivoIntegracionECFManual {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ArchivoIntegracionECFManual.class);
|
private static final Logger log = LogManager.getLogger(ArchivoIntegracionECFManual.class);
|
||||||
|
|
||||||
public File importacionFiscalECFManual(Date inicio, Date fim, Empresa empresa, List<ImportacionManualFiscalVO> listManual) {
|
public File importacionFiscalECFManual(Date inicio, Date fim, Empresa empresa, List<ImportacionManualFiscalVO> listManual) {
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,8 @@ import java.io.PrintWriter;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
||||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||||
|
@ -19,7 +20,7 @@ import com.rjconsultores.ventaboletos.vo.impressaofiscal.ImportacionNaoFiscalVO;
|
||||||
|
|
||||||
public class ArchivoIntegracionNaoFiscal {
|
public class ArchivoIntegracionNaoFiscal {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ArchivoIntegracionNaoFiscal.class);
|
private static final Logger log = LogManager.getLogger(ArchivoIntegracionNaoFiscal.class);
|
||||||
|
|
||||||
private String cnpjFilial;
|
private String cnpjFilial;
|
||||||
private Integer sequencial = 0;
|
private Integer sequencial = 0;
|
||||||
|
|
|
@ -11,7 +11,8 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
@ -23,7 +24,7 @@ import com.rjconsultores.ventaboletos.vo.impressaofiscal.SituacaoTributaria;
|
||||||
|
|
||||||
public class ArchivoIntegracionReducaoZ {
|
public class ArchivoIntegracionReducaoZ {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ArchivoIntegracionReducaoZ.class);
|
private static final Logger log = LogManager.getLogger(ArchivoIntegracionReducaoZ.class);
|
||||||
|
|
||||||
public File importacionReducaoZ(Date inicio, Date fim, Empresa empresa, boolean isPendencias, List<ImportacionFiscalReducaoZVO> listReducao) {
|
public File importacionReducaoZ(Date inicio, Date fim, Empresa empresa, boolean isPendencias, List<ImportacionFiscalReducaoZVO> listReducao) {
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,8 @@ import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Constante;
|
import com.rjconsultores.ventaboletos.entidad.Constante;
|
||||||
|
@ -21,7 +22,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||||
|
|
||||||
@Service("exportacaoBpe")
|
@Service("exportacaoBpe")
|
||||||
public class ExportacaoBpe {
|
public class ExportacaoBpe {
|
||||||
private static Logger log = Logger.getLogger(ExportacaoBpe.class);
|
private static final Logger log = LogManager.getLogger(ExportacaoBpe.class);
|
||||||
|
|
||||||
private static String VAZIO = "";
|
private static String VAZIO = "";
|
||||||
private static String SEPARADOR = "|";
|
private static String SEPARADOR = "|";
|
||||||
|
|
|
@ -17,7 +17,8 @@ import javax.xml.bind.Unmarshaller;
|
||||||
import javax.xml.transform.stream.StreamSource;
|
import javax.xml.transform.stream.StreamSource;
|
||||||
|
|
||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
@ -28,7 +29,7 @@ import br.inf.portalfiscal.bpe.TBPe;
|
||||||
|
|
||||||
public class BPeUtil {
|
public class BPeUtil {
|
||||||
|
|
||||||
private static Logger log = Logger.getLogger(ExportacaoBPEVo.class);
|
private static final Logger log = LogManager.getLogger(ExportacaoBPEVo.class);
|
||||||
|
|
||||||
public static TBPe convertXmlToBpe(String xml) {
|
public static TBPe convertXmlToBpe(String xml) {
|
||||||
TBPe objeto = null;
|
TBPe objeto = null;
|
||||||
|
|
|
@ -14,7 +14,8 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
import com.rjconsultores.ventaboletos.constantes.Constantes;
|
||||||
|
@ -33,7 +34,7 @@ import com.rjconsultores.ventaboletos.utilerias.exportacaofiscal.vo.ExportacaoRM
|
||||||
|
|
||||||
@Service("exportacaoFiscal")
|
@Service("exportacaoFiscal")
|
||||||
public class ExportacaoFiscal {
|
public class ExportacaoFiscal {
|
||||||
private static Logger log = Logger.getLogger(ExportacaoFiscal.class);
|
private static final Logger log = LogManager.getLogger(ExportacaoFiscal.class);
|
||||||
|
|
||||||
private static String VAZIO = "";
|
private static String VAZIO = "";
|
||||||
private static String SEPARADOR = "|";
|
private static String SEPARADOR = "|";
|
||||||
|
|
Loading…
Reference in New Issue