Skip to content
Snippets Groups Projects
Commit c10a03ff authored by Pietro Cavassin's avatar Pietro Cavassin
Browse files

add filters

parent 9e11a7df
No related branches found
No related tags found
3 merge requests!309Merge new updates into master,!279Homologa,!278Enrollment situation tmp
Pipeline #27969 failed
......@@ -120,6 +120,57 @@ rqf.addField({
table: 'curso_ens_superior'
}
})
.addValue({
name: 'mesoregion',
table: 'municipio',
tableField: ['nome_mesorregiao', 'mesorregiao_id'],
resultField: ['mesoregion_name', 'mesoregion_id'],
where: {
relation: '=',
type: 'integer',
field: 'mesorregiao_id',
table: 'municipio'
},
join: {
primary: 'id',
foreign: 'cod_municipio_ies',
foreignTable: 'ies_ens_superior'
}
})
.addValue({
name: 'microregion',
table: 'municipio',
tableField: ['nome_microrregiao', 'microrregiao_id'],
resultField: ['microregion_name', 'microregion_id'],
where: {
relation: '=',
type: 'integer',
field: 'microrregiao_id',
table: 'municipio'
},
join: {
primary: 'id',
foreign: 'cod_municipio_ies',
foreignTable: 'ies_ens_superior'
}
})
.addValue({
name: 'city',
table: 'municipio',
tableField: ['id', 'nome'],
resultField: ['city_id', 'city_name'],
where: {
relation: '=',
type: 'integer',
field: 'id',
table: 'municipio'
},
join: {
primary: 'id',
foreign: 'cod_municipio_ies',
foreignTable: 'ies_ens_superior'
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment