Commit dd08fb966fd66f482c5e5cff22a1c55a5e024dbd
1 parent
7c5b914d
Exists in
master
and in
1 other branch
Ajuste na obrigatoriedade dos parâmetros de entrada do serviço de template de documento
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
rn/MdWsSeiDocumentoRN.php
... | ... | @@ -198,10 +198,14 @@ class MdWsSeiDocumentoRN extends DocumentoRN { |
198 | 198 | protected function pesquisarTemplateDocumentoConectado(MdWsSeiDocumentoDTO $dto) { |
199 | 199 | try { |
200 | 200 | |
201 | - if (empty($dto->getNumIdTipoProcedimento())) { | |
202 | - throw new InfraException('Tipo de procedimento é uma informação obrigatória.'); | |
201 | + if ($dto->getNumIdTipoDocumento()) { | |
202 | + throw new InfraException('Tipo de documento é uma informação obrigatória.'); | |
203 | 203 | } |
204 | 204 | |
205 | + if ($dto->getNumIdProcesso()) { | |
206 | + throw new InfraException('O id do processo é obrigatório.'); | |
207 | + } | |
208 | + | |
205 | 209 | $objProcedimentoDTO = new ProcedimentoDTO(); |
206 | 210 | $objProcedimentoDTO->setDblIdProcedimento($dto->getNumIdProcesso()); |
207 | 211 | $objProcedimentoDTO->retNumIdTipoProcedimento(); | ... | ... |