Commit d6cb6661d1577991111b725f7f368996f3dab36e
1 parent
e69086cc
Exists in
master
and in
1 other branch
[Feat] Alterando pesquisa de unidades para retornar apenas as que podem ser envi…
…adas e filtrando pela sigla e descricao
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
rn/MdWsSeiUnidadeRN.php
... | ... | @@ -26,9 +26,16 @@ class MdWsSeiUnidadeRN extends InfraRN { |
26 | 26 | } |
27 | 27 | if($unidadeDTOParam->isSetStrSigla()){ |
28 | 28 | $filter = '%'.$unidadeDTOParam->getStrSigla().'%'; |
29 | - $unidadeDTO->setStrSigla($filter, InfraDTO::$OPER_LIKE, true); | |
29 | + | |
30 | + $unidadeDTO->adicionarCriterio( | |
31 | + array('Sigla', 'Descricao'), | |
32 | + array(InfraDTO::$OPER_LIKE, InfraDTO::$OPER_LIKE), | |
33 | + array($filter, $filter), | |
34 | + InfraDTO::$OPER_LOGICO_OR | |
35 | + ); | |
30 | 36 | } |
31 | 37 | $unidadeDTO->setStrSinAtivo('S'); |
38 | + $unidadeDTO->setStrSinEnvioProcesso('S'); | |
32 | 39 | $unidadeDTO->retNumIdUnidade(); |
33 | 40 | $unidadeDTO->retStrSigla(); |
34 | 41 | $unidadeDTO->retStrDescricao(); | ... | ... |