Skip to content

Commit

Permalink
improving query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriolino committed Apr 9, 2021
1 parent a82850b commit 30317a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private function totalAtendimentosServico(

if ($usuario) {
$qb
->andWhere('e.usuario = :usuario')
->andWhere('a.usuario = :usuario')
->setParameter('usuario', $usuario);
}

Expand Down Expand Up @@ -321,7 +321,7 @@ private function tempoMedioAtendimentos(

if ($usuario) {
$qb
->andWhere('e.usuario = :usuario')
->andWhere('a.usuario = :usuario')
->setParameter('usuario', $usuario);
}

Expand Down Expand Up @@ -414,7 +414,7 @@ private function servicosRealizados(DateTime $dataInicial, DateTime $dataFinal,
->setParameter('dataInicial', $dataInicial)
->setParameter('dataFinal', $dataFinal)
->setParameter('unidade', $unidade)
->setMaxResult(self::MAX_RESULTS);
->setMaxResults(self::MAX_RESULTS);

if ($usuario) {
$qb
Expand Down

0 comments on commit 30317a4

Please sign in to comment.