fixes bug#21207
dev:valdir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@105104 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
623670068a
commit
4dbf62ba10
|
@ -66,14 +66,17 @@ public class ComissaoServiceImpl implements ComissaoService {
|
|||
@Override
|
||||
public List<HistoricoComissao> buscaHistoricoComissao(Integer puntoVentaId, Integer empresaId, Date periodoInicio, Date periodoFim) {
|
||||
String competenciaInicial = DateUtil.getStringDate(periodoInicio, "MM/yyyy");
|
||||
String competenciaFinal = DateUtil.getStringDate(periodoInicio, "MM/yyyy");
|
||||
String competenciaFinal = DateUtil.getStringDate(periodoFim, "MM/yyyy");
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
parametros.put("competenciaInicial", competenciaInicial);
|
||||
parametros.put("competenciaFinal", competenciaFinal);
|
||||
parametros.put("puntoventaId", puntoVentaId);
|
||||
parametros.put("empresaId", empresaId);
|
||||
|
||||
if(puntoVentaId != null && puntoVentaId > -1) {
|
||||
parametros.put("puntoventaId", puntoVentaId);
|
||||
}
|
||||
|
||||
return comissaoDAO.buscaHistoricoComissao(parametros);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue