From a546bd1082d9899021aa5e16e2ce12f947ea241a Mon Sep 17 00:00:00 2001 From: godp21 <godp21@inf.ufpr.br> Date: Fri, 8 Apr 2022 11:31:46 -0300 Subject: [PATCH] adding filters and changing base consult on employees and teacher tables --- src/libs/routes/employees.js | 2 +- src/libs/routes/teacher.js | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/libs/routes/employees.js b/src/libs/routes/employees.js index 927aea51..20dcb7b2 100644 --- a/src/libs/routes/employees.js +++ b/src/libs/routes/employees.js @@ -255,7 +255,7 @@ rqfSchool.addField({ } }).addValue({ name: 'diff_location', - table: 'funcionarios_por_escola', + table: '@', tableField: 'localizacao_diferenciada_par', resultField: 'diff_location_id_par', where: { diff --git a/src/libs/routes/teacher.js b/src/libs/routes/teacher.js index 51e5fea4..2ce66328 100644 --- a/src/libs/routes/teacher.js +++ b/src/libs/routes/teacher.js @@ -416,6 +416,16 @@ rqf.addField({ type: 'integer', field: 'localizacao_id' } +}).addValue({ + name: 'diff_location', + table: 'docente', + tableField: 'localizacao_diferenciada_par', + resultField: 'diff_location_id_par', + where: { + relation: '=', + type: 'integer', + field: 'localizacao_diferenciada_par' + } }).addValue({ name: 'rural_location', table: 'docente', -- GitLab