Skip to content
Snippets Groups Projects
Commit 0117fab0 authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Add missing filters

parent e5708266
No related branches found
No related tags found
1 merge request!133Release v1.4.0
Pipeline #16255 failed
......@@ -119,6 +119,36 @@ rqf.addField({
name: 'dims',
field: true,
where: false
}).addValue({
name: 'school',
table: 'escola',
tableField: ['nome_escola', 'id'],
resultField: ['school_name', 'school_id'],
where: {
relation: '=',
type: 'integer',
field: 'id'
},
join: {
primary: ['id', 'ano_censo'],
foreign: ['escola_id', 'ano_censo'],
foreignTable: 'matricula'
}
}).addValue({
name: 'region',
table: 'regiao',
tableField: 'nome',
resultField: 'region_name',
where: {
relation: '=',
type: 'integer',
field: 'id'
},
join: {
primary: 'id',
foreign: 'regiao_id',
foreignTable: 'matricula'
}
}).addValue({
name: 'city',
table: 'municipio',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment