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

Add filter related with education_level

parent 37eb9fde
No related branches found
Tags v1.3.2
2 merge requests!116Release v1.0.0,!47School number count
Pipeline #
...@@ -248,6 +248,66 @@ rqfCount.addField({ ...@@ -248,6 +248,66 @@ rqfCount.addField({
type: 'boolean', type: 'boolean',
field: 'quadra_esportes_coberta' field: 'quadra_esportes_coberta'
} }
}).addValue({
name: 'education_eja',
table: 'escola',
tableField: 'ensino_eja',
resultField: 'education_eja_name',
where: {
relation: '=',
type: 'boolean',
field: 'ensino_eja'
}
}).addValue({
name: 'education_professional',
table: 'escola',
tableField: 'educacao_profissional',
resultField: 'education_professional_name',
where: {
relation: '=',
type: 'boolean',
field: 'educacao_profissional'
}
}).addValue({
name: 'education_middle_school',
table: 'escola',
tableField: 'reg_medio_medio',
resultField: 'education_middle_school_name',
where: {
relation: '=',
type: 'boolean',
field: 'reg_medio_medio'
}
}).addValue({
name: 'education_end_elementary_school',
table: 'escola',
tableField: 'reg_fund_af',
resultField: 'education_end_elementary_school_name',
where: {
relation: '=',
type: 'boolean',
field: 'reg_fund_af'
}
}).addValue({
name: 'education_begin_elementary_school',
table: 'escola',
tableField: 'reg_fund_ai',
resultField: 'education_begin_elementary_school_name',
where: {
relation: '=',
type: 'boolean',
field: 'reg_fund_ai'
}
}).addValue({
name: 'education_preschool_child',
table: 'escola',
tableField: 'reg_infantil_preescola',
resultField: 'education_preschool_child_name',
where: {
relation: '=',
type: 'boolean',
field: 'reg_infantil_preescola'
}
}); });
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