fixes bug #9066
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@70894 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a6106a6de5
commit
d30c79eb3f
|
@ -6,6 +6,7 @@ package com.rjconsultores.ventaboletos.dao;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Conferencia;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque;
|
||||
|
@ -35,5 +36,5 @@ public interface PuntoVentaDAO extends GenericDAO<PuntoVenta, Integer> {
|
|||
|
||||
public List<PuntoVenta> buscarPuntoVentaPorTipoEstoque(PtovtaTipoEstoque tipoEstoque);
|
||||
|
||||
public List<String> quantidadeECFPorPuntoVenta(Integer puntoVentaID);
|
||||
public List<String> quantidadeECFPorPuntoVenta(Conferencia conferencia);
|
||||
}
|
||||
|
|
|
@ -24,11 +24,13 @@ import org.springframework.stereotype.Repository;
|
|||
|
||||
import com.rjconsultores.ventaboletos.dao.PtovtaTipoEstoqueDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.PuntoVentaDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Conferencia;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.PtovtaTipoEstoque;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVentaVO;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -240,14 +242,16 @@ public class PuntoVentaHibernateDAO extends GenericHibernateDAO<PuntoVenta, Inte
|
|||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<String> quantidadeECFPorPuntoVenta(Integer puntoVentaID) {
|
||||
String query = " select DISTINCT NUMSERIE20 from FISCAL_R4 f"
|
||||
+" join Boleto b on b.BOLETO_ID=f.BOLETO_ID"
|
||||
+" WHERE b.PUNTOVENTA_ID=:puntoVentaId"
|
||||
+" GROUP BY NUMSERIE20";
|
||||
public List<String> quantidadeECFPorPuntoVenta(Conferencia conferencia) {
|
||||
String query = " SELECT f.NUMSERIE20 from FISCAL_R4 f "
|
||||
+ "JOIN FISCAL_IMPRESSORA fi on fi.FISCALIMPRESSORA_ID=f.FISCALIMPRESSORA_ID "
|
||||
+" WHERE f.DATAMOV=:dataMovimento "
|
||||
+ "AND fi.PUNTOVENTA_ID=:puntoVentaId "
|
||||
+" GROUP BY f.NUMSERIE20 ";
|
||||
|
||||
Query q = getSession().createSQLQuery(query);
|
||||
q.setInteger("puntoVentaId", puntoVentaID);
|
||||
q.setInteger("puntoVentaId", conferencia.getPuntoVenta().getPuntoventaId());
|
||||
q.setString("dataMovimento", DateUtil.getStringDate(conferencia.getDatamovimento(),"yyyyMMdd"));
|
||||
return q.list();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,9 +80,10 @@ public interface ConferenciaComissaoService extends GenericService<Conferencia,
|
|||
|
||||
public DiaConferenciaComissaoVO carregarConferenciaRegistrada(Date datamovimento, Empresa empresa, PuntoVenta puntoVenta) throws BusinessException;
|
||||
|
||||
public List<String> quantidadeECFPorPuntoVenta(Integer puntoVentaID);
|
||||
public List<String> quantidadeECFPorPuntoVenta(Conferencia conferencia);
|
||||
|
||||
public void enviarEmailIrregularidadeECF(String email, String msg,String assunto)throws Exception ;
|
||||
|
||||
public void generacionAutomaticaConferencia();
|
||||
|
||||
}
|
||||
|
|
|
@ -536,7 +536,7 @@ public class ConferenciaComissaoServiceImpl implements ConferenciaComissaoServic
|
|||
//subtrairOcdFormapagoDinheiro(totalOcd, resumoComissao);
|
||||
carregarTotalDeposito(resumoComissao, boletoComissaos, lsEventosFinanceiros);
|
||||
|
||||
resumoComissao.setListNumSerieECF(puntoVentaDAO.quantidadeECFPorPuntoVenta(conferencia.getPuntoVenta().getPuntoventaId()));
|
||||
resumoComissao.setListNumSerieECF(puntoVentaDAO.quantidadeECFPorPuntoVenta(conferencia));
|
||||
|
||||
return resumoComissao;
|
||||
}
|
||||
|
@ -782,8 +782,8 @@ public class ConferenciaComissaoServiceImpl implements ConferenciaComissaoServic
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<String> quantidadeECFPorPuntoVenta(Integer puntoVentaID) {
|
||||
return puntoVentaDAO.quantidadeECFPorPuntoVenta(puntoVentaID);
|
||||
public List<String> quantidadeECFPorPuntoVenta(Conferencia conferencia) {
|
||||
return puntoVentaDAO.quantidadeECFPorPuntoVenta(conferencia);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue