Skip to content
Snippets Groups Projects
Commit 87974191 authored by Pietro Cavassin's avatar Pietro Cavassin
Browse files

add year field to division of responsibility route

parent 87ec6ac0
No related branches found
No related tags found
4 merge requests!377prd_version of simcaq,!368update filter in v2 school,!362Development,!361Add workload and number of employees routes
...@@ -127,9 +127,11 @@ rqf.addField({ ...@@ -127,9 +127,11 @@ rqf.addField({
simcaqDivisionOfResponsibilityApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { simcaqDivisionOfResponsibilityApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
req.sql.from('simcaq_divisao_de_responsabilidade') req.sql.from('simcaq_divisao_de_responsabilidade')
.field('simcaq_divisao_de_responsabilidade.ano_censo', 'year')
.field('SUM(simcaq_divisao_de_responsabilidade.total_matriculas)', 'enrollments') .field('SUM(simcaq_divisao_de_responsabilidade.total_matriculas)', 'enrollments')
.field('simcaq_divisao_de_responsabilidade.etapa', 'education_level_short_id') .field('simcaq_divisao_de_responsabilidade.etapa', 'education_level_short_id')
.field('simcaq_divisao_de_responsabilidade.rede', 'adm_dependency_public_id') .field('simcaq_divisao_de_responsabilidade.rede', 'adm_dependency_public_id')
.group('simcaq_divisao_de_responsabilidade.ano_censo')
.group('simcaq_divisao_de_responsabilidade.etapa') .group('simcaq_divisao_de_responsabilidade.etapa')
.group('simcaq_divisao_de_responsabilidade.rede'); .group('simcaq_divisao_de_responsabilidade.rede');
next(); 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