diff --git a/src/libs/routes/school.js b/src/libs/routes/school.js index 2809f2ca28b3acb57397a1dc1c970e358f979c41..43f94e18faf658a53e3ab495b2961fa56c8fd4f2 100644 --- a/src/libs/routes/school.js +++ b/src/libs/routes/school.js @@ -418,6 +418,26 @@ rqfCount.addField({ type: 'boolean', 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) => {