Commit 95c457684599bb85175637ce04aa4453a4398681
1 parent
2ee05939
Exists in
master
Corrigido API matricula, para pesquisar por códigos similares ao informado fixes #2
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
ieducar/modules/Api/Views/MatriculaController.php
... | ... | @@ -62,7 +62,7 @@ class MatriculaController extends ApiCoreController |
62 | 62 | pmieducar.aluno, cadastro.pessoa where aluno.cod_aluno = matricula.ref_cod_aluno and |
63 | 63 | pessoa.idpes = aluno.ref_idpes and aluno.ativo = matricula.ativo and |
64 | 64 | matricula.ativo = 1 and matricula.aprovado in (1, 2, 3, 4, 7, 8, 9) and |
65 | - (matricula.cod_matricula like $1 or matricula.ref_cod_aluno like $1) and | |
65 | + (matricula.cod_matricula like $1||'%' or matricula.ref_cod_aluno like $1||'%') and | |
66 | 66 | (select case when $2 != 0 then matricula.ref_ref_cod_escola = $2 else 1=1 end) and |
67 | 67 | (select case when $3 != 0 then matricula.ano = $3 else 1=1 end) limit 15"; |
68 | 68 | } | ... | ... |