Skip to content
Snippets Groups Projects
Commit 0f89c1b1 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Fix RQF in school

parent 1eb15a33
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -335,23 +335,7 @@ rqf.addField({
type: 'integer',
field: 'id'
}
}).addValueToField({
name: 'city',
table: 'municipio',
tableField: ['nome', 'id'],
resultField: ['city_name', 'city_id'],
where: {
relation: '=',
type: 'integer',
field: 'municipio_id',
table: 'escola'
},
join: {
primary: 'id',
foreign: 'municipio_id',
foreignTable: 'escola'
}
}, 'dims').addValueToField({
}).addValue({
name: 'city',
table: 'municipio',
tableField: 'nome',
......@@ -367,7 +351,7 @@ rqf.addField({
foreign: 'municipio_id',
foreignTable: 'escola'
}
}, 'filter').addValue({
}).addValue({
name: 'state',
table: 'estado',
tableField: 'nome',
......@@ -413,7 +397,23 @@ rqfCount.addField({
type: 'integer',
field: 'id'
}
}).addValue({
}).addValueToField({
name: 'city',
table: 'municipio',
tableField: ['nome', 'id'],
resultField: ['city_name', 'city_id'],
where: {
relation: '=',
type: 'integer',
field: 'municipio_id',
table: 'escola'
},
join: {
primary: 'id',
foreign: 'municipio_id',
foreignTable: 'escola'
}
}, 'dims').addValueToField({
name: 'city',
table: 'municipio',
tableField: 'nome',
......@@ -429,7 +429,7 @@ rqfCount.addField({
foreign: 'municipio_id',
foreignTable: 'escola'
}
}).addValue({
}, 'filter').addValue({
name: 'state',
table: 'estado',
tableField: 'nome',
......
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