Skip to content
Snippets Groups Projects
Commit 2c21fc50 authored by Gabriel Ruschel's avatar Gabriel Ruschel
Browse files

Add locality filter

parent 41558e4c
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!38Classroom count route
Pipeline #
...@@ -23,7 +23,7 @@ rqf.addField({ ...@@ -23,7 +23,7 @@ rqf.addField({
field: true, field: true,
where: false where: false
}).addValue({ }).addValue({
name: 'id', name: 'school',
table: 'escola', table: 'escola',
tableField: 'id', tableField: 'id',
where: { where: {
...@@ -119,6 +119,17 @@ rqf.addField({ ...@@ -119,6 +119,17 @@ rqf.addField({
foreign: 'dependencia_adm_priv', foreign: 'dependencia_adm_priv',
foreignTable: 'escola' foreignTable: 'escola'
} }
}).addValue({
name: 'locality',
table: 'escola',
tableField: 'cod_localizacao',
resultField: 'locality',
where: {
relation: '=',
type: 'integer',
field: 'cod_localizacao',
table: 'escola'
}
}); });
classroomApp.get('/count', rqf.parse(), rqf.build(), (req, res, next) => { classroomApp.get('/count', rqf.parse(), rqf.build(), (req, res, next) => {
......
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