From 8b2a3b7c864e0cf5e0d0d51659720bacda93d474 Mon Sep 17 00:00:00 2001 From: Gedeson Wasley Date: Thu, 27 Mar 2014 10:21:45 -0300 Subject: [PATCH] Correção de Relatórios --- src/Cacic/CommonBundle/Entity/SoftwareRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cacic/CommonBundle/Entity/SoftwareRepository.php b/src/Cacic/CommonBundle/Entity/SoftwareRepository.php index f7ec67c..f49f8aa 100644 --- a/src/Cacic/CommonBundle/Entity/SoftwareRepository.php +++ b/src/Cacic/CommonBundle/Entity/SoftwareRepository.php @@ -97,14 +97,14 @@ class SoftwareRepository extends EntityRepository { // Monta a Consulta básica... $qb = $this->createQueryBuilder('sw') - ->select('COALESCE(sw.nmSoftware, prop.displayName) as nmSoftware', 'l.nmLocal','COUNT(DISTINCT col.computador) AS numComp') + ->select('COALESCE(sw.nmSoftware) as nmSoftware', 'l.nmLocal','COUNT(DISTINCT col.computador) AS numComp') ->innerJoin('CacicCommonBundle:PropriedadeSoftware', 'prop', 'WITH', 'sw.idSoftware = prop.software') ->innerJoin('CacicCommonBundle:ClassProperty', 'class','WITH', 'prop.classProperty = class.idClassProperty') ->innerJoin('CacicCommonBundle:ComputadorColeta', 'col', 'WITH', 'col.computador = prop.computador') ->innerJoin('CacicCommonBundle:Computador', 'comp', 'WITH', 'col.computador = comp.idComputador') ->innerJoin('comp.idRede','r') ->leftJoin('r.idLocal', 'l') - ->groupBy('sw.nmSoftware, prop.displayName, l.nmLocal') + ->groupBy('sw.nmSoftware, l.nmLocal') ->orderBy('sw.nmSoftware, l.nmLocal'); /** -- libgit2 0.21.2