diff --git a/src/libs/routes/class.js b/src/libs/routes/class.js index 4cf349fa06672f1fbe927ddd4f424a9d4edb0844..88df17a2dc937ab7ac92bd80fc642cc431dc6384 100644 --- a/src/libs/routes/class.js +++ b/src/libs/routes/class.js @@ -275,6 +275,16 @@ rqfCount.addField({ type: 'integer', field: 'localizacao_id' } +}).addValue({ + name: 'diff_location', + table: 'turma', + tableField: 'localizacao_diferenciada_par', + resultField: 'diff_location_id_par', + where: { + relation: '=', + type: 'integer', + field: 'localizacao_diferenciada_par' + } }).addValue({ name: 'rural_location', table: 'turma', diff --git a/src/libs/routes/employees.js b/src/libs/routes/employees.js index 89b5ebd090ebcf0d83c536bd2ee05eded98015e3..927aea510d41edf0571b6fdfd10cdfda6aa58f0e 100644 --- a/src/libs/routes/employees.js +++ b/src/libs/routes/employees.js @@ -253,6 +253,16 @@ rqfSchool.addField({ type: 'integer', field: 'localizacao_id' } +}).addValue({ + name: 'diff_location', + table: 'funcionarios_por_escola', + tableField: 'localizacao_diferenciada_par', + resultField: 'diff_location_id_par', + where: { + relation: '=', + type: 'integer', + field: 'localizacao_diferenciada_par' + } }).addValue({ name: 'rural_location', table: '@', diff --git a/src/libs/routes/enrollment.js b/src/libs/routes/enrollment.js index c3a1e68d3d2ab0aae30bd37a120ec489d1d09439..e0da7fbf7f4e51d7a69da0c1a1f0a45b3d0b1cec 100644 --- a/src/libs/routes/enrollment.js +++ b/src/libs/routes/enrollment.js @@ -498,6 +498,16 @@ rqf.addField({ type: 'integer', field: 'localizacao_id' } +}).addValue({ + name: 'diff_location', + table: 'matricula', + tableField: 'localizacao_diferenciada_par', + resultField: 'diff_location_id_par', + where: { + relation: '=', + type: 'integer', + field: 'localizacao_diferenciada_par' + } }).addValue({ name: 'rural_location', table: 'matricula', diff --git a/src/libs/routes/school.js b/src/libs/routes/school.js index e8527400e69d59adab330363ed8da1383b694184..f100b6e6410feb761f609e10cc17414fd0821c7c 100644 --- a/src/libs/routes/school.js +++ b/src/libs/routes/school.js @@ -429,6 +429,16 @@ rqfCount.addField({ type: 'integer', field: 'localizacao_id' } +}).addValue({ + name: 'diff_location', + table: 'escola', + tableField: 'localizacao_diferenciada_par', + resultField: 'diff_location_id_par', + where: { + relation: '=', + type: 'integer', + field: 'localizacao_diferenciada_par' + } }).addValue({ name: 'rural_location', table: 'escola',