Commit 188588dddea1f36193b41502f968d4513f1c8923

Authored by Starlone Passos
1 parent 49424769

Indicador 16 - Obtendo quantidade de recurso utilizado por mes

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
rn/MdEstatisticasColetarRN.php
@@ -501,6 +501,10 @@ class MdEstatisticasColetarRN extends InfraRN { @@ -501,6 +501,10 @@ class MdEstatisticasColetarRN extends InfraRN {
501 return $lista; 501 return $lista;
502 } 502 }
503 503
504 - 504 + public function obterQuantidadeRecurso() {
  505 + $query = "SELECT year(dth_acesso) as ano, month(dth_acesso) as mes, recurso, count(*) as quantidade FROM sei.infra_auditoria group by 1, 2, 3 order by 1, 2, 3";
  506 + return BancoSEI::getInstance()->consultarSql($query);
  507 + }
  508 +
505 } 509 }
506 ?> 510 ?>