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

Add filters

parent c10108ef
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!47School number count
Pipeline #
...@@ -418,6 +418,26 @@ rqfCount.addField({ ...@@ -418,6 +418,26 @@ rqfCount.addField({
type: 'boolean', type: 'boolean',
field: 'dependencias_pne ' field: 'dependencias_pne '
} }
}).addValue({
name: 'agreement',
table: 'escola',
tableField: 'tipo_convenio_pp',
resultField: 'agreement_name',
where: {
relation: '=',
type: 'integer',
field: 'tipo_convenio_pp'
}
}).addValue({
name: 'building_school',
table: 'escola',
tableField: 'local_func_predio_escolar',
resultField: 'building_school_name',
where: {
relation: '=',
type: 'boolean',
field: 'local_func_predio_escolar'
}
}); });
schoolApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { 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