Commit 19e8b2efcfc134b1c5f090d559519aac4cbe64e5
1 parent
f2bcfce7
Exists in
master
and in
1 other branch
[Fix] Corrigindo paginação do acompanhamento especial no SQL SERVER
Showing
3 changed files
with
4 additions
and
3 deletions
Show diff stats
MdWsSeiRest.php
| @@ -150,7 +150,7 @@ class MdWsSeiRest extends SeiIntegracao | @@ -150,7 +150,7 @@ class MdWsSeiRest extends SeiIntegracao | ||
| 150 | 150 | ||
| 151 | public function getVersao() | 151 | public function getVersao() |
| 152 | { | 152 | { |
| 153 | - return '0.7.8'; | 153 | + return '0.7.9'; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | public function getInstituicao() | 156 | public function getInstituicao() |
rn/MdWsSeiGrupoAcompanhamentoRN.php
| @@ -19,6 +19,7 @@ class MdWsSeiGrupoAcompanhamentoRN extends InfraRN { | @@ -19,6 +19,7 @@ class MdWsSeiGrupoAcompanhamentoRN extends InfraRN { | ||
| 19 | $grupoAcompanhamentoRN = new GrupoAcompanhamentoRN(); | 19 | $grupoAcompanhamentoRN = new GrupoAcompanhamentoRN(); |
| 20 | $grupoAcompanhamentoDTOConsulta->retNumIdGrupoAcompanhamento(); | 20 | $grupoAcompanhamentoDTOConsulta->retNumIdGrupoAcompanhamento(); |
| 21 | $grupoAcompanhamentoDTOConsulta->retStrNome(); | 21 | $grupoAcompanhamentoDTOConsulta->retStrNome(); |
| 22 | + $grupoAcompanhamentoDTOConsulta->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC); | ||
| 22 | if(!$grupoAcompanhamentoDTOParam->isSetNumIdUnidade()){ | 23 | if(!$grupoAcompanhamentoDTOParam->isSetNumIdUnidade()){ |
| 23 | $grupoAcompanhamentoDTOConsulta->setNumIdUnidade(SessaoSEI::getInstance()->getNumIdUnidadeAtual()); | 24 | $grupoAcompanhamentoDTOConsulta->setNumIdUnidade(SessaoSEI::getInstance()->getNumIdUnidadeAtual()); |
| 24 | }else{ | 25 | }else{ |
rn/MdWsSeiProcedimentoRN.php
| @@ -206,6 +206,7 @@ class MdWsSeiProcedimentoRN extends InfraRN | @@ -206,6 +206,7 @@ class MdWsSeiProcedimentoRN extends InfraRN | ||
| 206 | try { | 206 | try { |
| 207 | $acompanhamentoRN = new AcompanhamentoRN(); | 207 | $acompanhamentoRN = new AcompanhamentoRN(); |
| 208 | $acompanhamentoDTO = new AcompanhamentoDTO(); | 208 | $acompanhamentoDTO = new AcompanhamentoDTO(); |
| 209 | + $acompanhamentoDTO->setOrdIdAcompanhamento(InfraDTO::$TIPO_ORDENACAO_DESC); | ||
| 209 | if(!$mdWsSeiProtocoloDTOParam->isSetNumIdGrupoAcompanhamentoProcedimento()){ | 210 | if(!$mdWsSeiProtocoloDTOParam->isSetNumIdGrupoAcompanhamentoProcedimento()){ |
| 210 | throw new Exception('O grupo deve ser informado!'); | 211 | throw new Exception('O grupo deve ser informado!'); |
| 211 | }else{ | 212 | }else{ |
| @@ -400,13 +401,12 @@ class MdWsSeiProcedimentoRN extends InfraRN | @@ -400,13 +401,12 @@ class MdWsSeiProcedimentoRN extends InfraRN | ||
| 400 | 401 | ||
| 401 | if ($mdWsSeiProtocoloDTOParam->getStrSinTipoBusca() == MdWsSeiProtocoloDTO::SIN_TIPO_BUSCA_R) { | 402 | if ($mdWsSeiProtocoloDTOParam->getStrSinTipoBusca() == MdWsSeiProtocoloDTO::SIN_TIPO_BUSCA_R) { |
| 402 | $pesquisaPendenciaDTO->setStrSinInicial('N'); | 403 | $pesquisaPendenciaDTO->setStrSinInicial('N'); |
| 403 | - $ret = $atividadeRN->listarPendencias($pesquisaPendenciaDTO); | ||
| 404 | } else if ($mdWsSeiProtocoloDTOParam->getStrSinTipoBusca() == MdWsSeiProtocoloDTO::SIN_TIPO_BUSCA_G) { | 404 | } else if ($mdWsSeiProtocoloDTOParam->getStrSinTipoBusca() == MdWsSeiProtocoloDTO::SIN_TIPO_BUSCA_G) { |
| 405 | $pesquisaPendenciaDTO->setStrSinInicial('S'); | 405 | $pesquisaPendenciaDTO->setStrSinInicial('S'); |
| 406 | - $ret = $atividadeRN->listarPendencias($pesquisaPendenciaDTO); | ||
| 407 | } else { | 406 | } else { |
| 408 | throw new InfraException('O tipo de busca deve ser (R)ecebidos ou (G)erados'); | 407 | throw new InfraException('O tipo de busca deve ser (R)ecebidos ou (G)erados'); |
| 409 | } | 408 | } |
| 409 | + $ret = $atividadeRN->listarPendencias($pesquisaPendenciaDTO); | ||
| 410 | $result = $this->montaRetornoListagemProcessos($ret, $usuarioAtribuicaoAtividade); | 410 | $result = $this->montaRetornoListagemProcessos($ret, $usuarioAtribuicaoAtividade); |
| 411 | 411 | ||
| 412 | return MdWsSeiRest::formataRetornoSucessoREST(null, $result, $pesquisaPendenciaDTO->getNumTotalRegistros()); | 412 | return MdWsSeiRest::formataRetornoSucessoREST(null, $result, $pesquisaPendenciaDTO->getNumTotalRegistros()); |