Skip to content
Snippets Groups Projects
Commit b0afd250 authored by Hamer Iboshi's avatar Hamer Iboshi
Browse files

Added filters of directors_room, teacher_room, playground, nusery and toilet_inside_building

parent e65f165c
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!47School number count
Pipeline #
......@@ -308,6 +308,56 @@ rqfCount.addField({
type: 'boolean',
field: 'reg_infantil_preescola'
}
}).addValue({
name: 'directors_room',
table: 'escola',
tableField: 'sala_diretoria',
resultField: 'directors_room_name',
where: {
relation: '=',
type: 'boolean',
field: 'sala_diretoria'
}
}).addValue({
name: 'teacher_room',
table: 'escola',
tableField: 'sala_professor',
resultField: 'teacher_room_name',
where: {
relation: '=',
type: 'boolean',
field: 'sala_professor'
}
}).addValue({
name: 'playground',
table: 'escola',
tableField: 'parque_infantil',
resultField: 'playground_name',
where: {
relation: '=',
type: 'boolean',
field: 'parque_infantil'
}
}).addValue({
name: 'nusery',
table: 'escola',
tableField: 'bercario',
resultField: 'nusery_name',
where: {
relation: '=',
type: 'boolean',
field: 'bercario'
}
}).addValue({
name: 'toilet_inside_building',
table: 'escola',
tableField: 'sanitario_dentro_predio',
resultField: 'toilet_inside_building_name',
where: {
relation: '=',
type: 'boolean',
field: 'sanitario_dentro_predio'
}
});
schoolApp.get('/', 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