diff --git a/src/libs/routes/school.js b/src/libs/routes/school.js index 5ebf7473ad243e41528a05beca4d38c85be82f2c..f294024526827c7310fa4e47687ffdf0103b9179 100644 --- a/src/libs/routes/school.js +++ b/src/libs/routes/school.js @@ -248,6 +248,66 @@ rqfCount.addField({ type: 'boolean', 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) => {