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
rn/MdWsSeiGrupoAcompanhamentoRN.php
... | ... | @@ -19,6 +19,7 @@ class MdWsSeiGrupoAcompanhamentoRN extends InfraRN { |
19 | 19 | $grupoAcompanhamentoRN = new GrupoAcompanhamentoRN(); |
20 | 20 | $grupoAcompanhamentoDTOConsulta->retNumIdGrupoAcompanhamento(); |
21 | 21 | $grupoAcompanhamentoDTOConsulta->retStrNome(); |
22 | + $grupoAcompanhamentoDTOConsulta->setOrdStrNome(InfraDTO::$TIPO_ORDENACAO_ASC); | |
22 | 23 | if(!$grupoAcompanhamentoDTOParam->isSetNumIdUnidade()){ |
23 | 24 | $grupoAcompanhamentoDTOConsulta->setNumIdUnidade(SessaoSEI::getInstance()->getNumIdUnidadeAtual()); |
24 | 25 | }else{ | ... | ... |
rn/MdWsSeiProcedimentoRN.php
... | ... | @@ -206,6 +206,7 @@ class MdWsSeiProcedimentoRN extends InfraRN |
206 | 206 | try { |
207 | 207 | $acompanhamentoRN = new AcompanhamentoRN(); |
208 | 208 | $acompanhamentoDTO = new AcompanhamentoDTO(); |
209 | + $acompanhamentoDTO->setOrdIdAcompanhamento(InfraDTO::$TIPO_ORDENACAO_DESC); | |
209 | 210 | if(!$mdWsSeiProtocoloDTOParam->isSetNumIdGrupoAcompanhamentoProcedimento()){ |
210 | 211 | throw new Exception('O grupo deve ser informado!'); |
211 | 212 | }else{ |
... | ... | @@ -400,13 +401,12 @@ class MdWsSeiProcedimentoRN extends InfraRN |
400 | 401 | |
401 | 402 | if ($mdWsSeiProtocoloDTOParam->getStrSinTipoBusca() == MdWsSeiProtocoloDTO::SIN_TIPO_BUSCA_R) { |
402 | 403 | $pesquisaPendenciaDTO->setStrSinInicial('N'); |
403 | - $ret = $atividadeRN->listarPendencias($pesquisaPendenciaDTO); | |
404 | 404 | } else if ($mdWsSeiProtocoloDTOParam->getStrSinTipoBusca() == MdWsSeiProtocoloDTO::SIN_TIPO_BUSCA_G) { |
405 | 405 | $pesquisaPendenciaDTO->setStrSinInicial('S'); |
406 | - $ret = $atividadeRN->listarPendencias($pesquisaPendenciaDTO); | |
407 | 406 | } else { |
408 | 407 | throw new InfraException('O tipo de busca deve ser (R)ecebidos ou (G)erados'); |
409 | 408 | } |
409 | + $ret = $atividadeRN->listarPendencias($pesquisaPendenciaDTO); | |
410 | 410 | $result = $this->montaRetornoListagemProcessos($ret, $usuarioAtribuicaoAtividade); |
411 | 411 | |
412 | 412 | return MdWsSeiRest::formataRetornoSucessoREST(null, $result, $pesquisaPendenciaDTO->getNumTotalRegistros()); | ... | ... |