Commit acbee2e2da4cd2fba1c8d5c357fb949463c97f30
1 parent
bb251d91
Exists in
master
and in
1 other branch
desenvolvimento do WI = 11008 - [WorkItem][Listar Bloco de Assinatura] - Erro na…
… paginação da listagem e quando um bloco possuí um memorando circular
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
rn/MdWsSeiBlocoRN.php
| ... | ... | @@ -157,7 +157,7 @@ class MdWsSeiBlocoRN extends InfraRN { |
| 157 | 157 | if($blocoDTOConsulta->getNumMaxRegistrosRetorno()){ |
| 158 | 158 | $relBlocoProtocoloDTOConsulta->setNumMaxRegistrosRetorno($blocoDTOConsulta->getNumMaxRegistrosRetorno()); |
| 159 | 159 | }else{ |
| 160 | - $relBlocoProtocoloDTOConsulta->setNumMaxRegistrosRetorno(10); | |
| 160 | + $relBlocoProtocoloDTOConsulta->setNumMaxRegistrosRetorno(10000000); | |
| 161 | 161 | } |
| 162 | 162 | if(!is_null($blocoDTOConsulta->getNumPaginaAtual())){ |
| 163 | 163 | $relBlocoProtocoloDTOConsulta->setNumPaginaAtual($blocoDTOConsulta->getNumPaginaAtual()); |
| ... | ... | @@ -179,6 +179,7 @@ class MdWsSeiBlocoRN extends InfraRN { |
| 179 | 179 | /** @var RelBlocoProtocoloDTO $relBlocoProtocoloDTO */ |
| 180 | 180 | foreach($arrRelProtocolo as $relBlocoProtocoloDTO){ |
| 181 | 181 | $relProtocoloProtocoloDTO = new RelProtocoloProtocoloDTO(); |
| 182 | + $relProtocoloProtocoloDTO->setStrStaAssociacao($protocoloProtocoloRN::$TA_DOCUMENTO_CIRCULAR , InfraDTO::$OPER_DIFERENTE); | |
| 182 | 183 | $relProtocoloProtocoloDTO->setDblIdProtocolo2($relBlocoProtocoloDTO->getDblIdProtocolo()); |
| 183 | 184 | $relProtocoloProtocoloDTO->retDblIdProtocolo1(); |
| 184 | 185 | $relProtocoloProtocoloDTO = $protocoloProtocoloRN->consultarRN0841($relProtocoloProtocoloDTO); |
| ... | ... | @@ -237,7 +238,8 @@ class MdWsSeiBlocoRN extends InfraRN { |
| 237 | 238 | } |
| 238 | 239 | } |
| 239 | 240 | |
| 240 | - return MdWsSeiRest::formataRetornoSucessoREST(null, $result, $relBlocoProtocoloDTOConsulta->getNumTotalRegistros()); | |
| 241 | + | |
| 242 | + return MdWsSeiRest::formataRetornoSucessoREST(null, $result, count($result)); | |
| 241 | 243 | }catch (Exception $e){ |
| 242 | 244 | return MdWsSeiRest::formataRetornoErroREST($e); |
| 243 | 245 | } | ... | ... |