Commit c21b8846619ec15ca6f00b92cc4f1a1d77207424
1 parent
9d6a2d8a
Exists in
master
and in
1 other branch
[Refact] Efetuando pequenos ajustes.
Showing
2 changed files
with
14 additions
and
5 deletions
Show diff stats
rn/MdWsSeiOrgaoRN.php
| ... | ... | @@ -21,7 +21,16 @@ class MdWsSeiOrgaoRN extends InfraRN { |
| 21 | 21 | $orgaoDTO->retStrDescricao(); |
| 22 | 22 | $orgaoDTO->setStrSinAtivo('S'); |
| 23 | 23 | |
| 24 | - //Chamada Direta ao BD devido a ponta ser um serviço público sem autenticação. | |
| 24 | + if($orgaoDTOParam->getNumMaxRegistrosRetorno()){ | |
| 25 | + $orgaoDTO->setNumMaxRegistrosRetorno($orgaoDTOParam->getNumMaxRegistrosRetorno()); | |
| 26 | + }else{ | |
| 27 | + $orgaoDTO->setNumMaxRegistrosRetorno(10); | |
| 28 | + } | |
| 29 | + if(!is_null($orgaoDTOParam->getNumPaginaAtual())){ | |
| 30 | + $orgaoDTO->setNumPaginaAtual($orgaoDTOParam->getNumPaginaAtual()); | |
| 31 | + }else{ | |
| 32 | + $orgaoDTO->setNumPaginaAtual(0); | |
| 33 | + } | |
| 25 | 34 | |
| 26 | 35 | $orgaoBD = new OrgaoBD($this->getObjInfraIBanco()); |
| 27 | 36 | $ret = $orgaoBD->listar($orgaoDTO); |
| ... | ... | @@ -35,7 +44,7 @@ class MdWsSeiOrgaoRN extends InfraRN { |
| 35 | 44 | ); |
| 36 | 45 | } |
| 37 | 46 | |
| 38 | - return MdWsSeiRest::formataRetornoSucessoREST(null, $result); | |
| 47 | + return MdWsSeiRest::formataRetornoSucessoREST(null, $result, $orgaoDTO->getNumTotalRegistros()); | |
| 39 | 48 | }catch (Exception $e){ |
| 40 | 49 | return MdWsSeiRest::formataRetornoErroREST($e); |
| 41 | 50 | } | ... | ... |
rn/MdWsSeiProcedimentoRN.php
| ... | ... | @@ -91,7 +91,7 @@ class MdWsSeiProcedimentoRN extends InfraRN |
| 91 | 91 | 'sinInicial' => $atividadeDTO->getStrSinInicial(), |
| 92 | 92 | 'dtaPrazo' => $atividadeDTO->getDtaPrazo(), |
| 93 | 93 | 'tipoVisualizacao' => $atividadeDTO->getNumTipoVisualizacao(), |
| 94 | - 'dthConclusao' => null, | |
| 94 | + 'dthConclusao' => $atividadeDTO->getDthConclusao(), | |
| 95 | 95 | ); |
| 96 | 96 | } |
| 97 | 97 | |
| ... | ... | @@ -132,7 +132,7 @@ class MdWsSeiProcedimentoRN extends InfraRN |
| 132 | 132 | { |
| 133 | 133 | try { |
| 134 | 134 | if (!$procedimentoDTOParam->getDblIdProcedimento()) { |
| 135 | - throw new InfraException('Procedimento n?o informado.'); | |
| 135 | + throw new InfraException('Procedimento não informado.'); | |
| 136 | 136 | } |
| 137 | 137 | $seiRN = new SeiRN(); |
| 138 | 138 | $entradaRemoverSobrestamentoProcessoAPI = new EntradaRemoverSobrestamentoProcessoAPI(); |
| ... | ... | @@ -228,7 +228,7 @@ class MdWsSeiProcedimentoRN extends InfraRN |
| 228 | 228 | |
| 229 | 229 | $ret = array(); |
| 230 | 230 | foreach($arrAcompanhamentoDTO as $acompanhamentoDTO){ |
| 231 | - $ret[] = $acompanhamentoDTO->getObjProcedimentoDTO();; | |
| 231 | + $ret[] = $acompanhamentoDTO->getObjProcedimentoDTO(); | |
| 232 | 232 | } |
| 233 | 233 | $result = $this->montaRetornoListagemProcessos($ret, null); |
| 234 | 234 | ... | ... |