Skip to content
Snippets Groups Projects
Commit 44761aa3 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Merge branch 'issue/423' into development

Related: simcaq/SCRUM#423
parents 53b2795f 98c195a9
No related branches found
No related tags found
No related merge requests found
Pipeline #18482 failed
...@@ -14,7 +14,7 @@ module.exports = function educationLevelSchoolYear(id) { ...@@ -14,7 +14,7 @@ module.exports = function educationLevelSchoolYear(id) {
case 33: return 'Ens. Fundamental - 2ª série/3º ano'; case 33: return 'Ens. Fundamental - 2ª série/3º ano';
case 34: return 'Ens. Fundamental - 3ª série/4º ano'; case 34: return 'Ens. Fundamental - 3ª série/4º ano';
case 35: return 'Ens. Fundamental - 4ª série/5º Ano'; case 35: return 'Ens. Fundamental - 4ª série/5º Ano';
case 4: return 'Ensino Fundamento - anos finais'; case 4: return 'Ensino Fundamental - anos finais';
case 41: return 'Ens. Fundamental - 5ª série/6º ano'; case 41: return 'Ens. Fundamental - 5ª série/6º ano';
case 42: return 'Ens. Fundamental - 6ª série/7º ano'; case 42: return 'Ens. Fundamental - 6ª série/7º ano';
case 43: return 'Ens. Fundamental - 7ª série/8º ano'; case 43: return 'Ens. Fundamental - 7ª série/8º ano';
......
...@@ -117,12 +117,23 @@ enrollmentProjectionApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { ...@@ -117,12 +117,23 @@ enrollmentProjectionApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
.field('projecao_matricula.etapa_ensino_escola_ano_id', 'education_level_school_year_id') .field('projecao_matricula.etapa_ensino_escola_ano_id', 'education_level_school_year_id')
.field('projecao_matricula.ano_censo', 'year') .field('projecao_matricula.ano_censo', 'year')
.from('projecao_matricula') .from('projecao_matricula')
.where('projecao_matricula.etapa_ensino_escola_ano_id <> 7 AND projecao_matricula.etapa_ensino_escola_ano_id < 71')
.group('projecao_matricula.etapa_ensino_escola_ano_id') .group('projecao_matricula.etapa_ensino_escola_ano_id')
.group('projecao_matricula.ano_censo') .group('projecao_matricula.ano_censo')
.order('projecao_matricula.ano_censo') .order('projecao_matricula.ano_censo')
.order('projecao_matricula.etapa_ensino_escola_ano_id'); .order('projecao_matricula.etapa_ensino_escola_ano_id');
next(); next();
}, query, id2str.transform(), response('enrollment_projection')); }, query, id2str.transform(), (req, res, next) => {
req.result.forEach((r) => {
r.urban_day_total = parseInt(r.urban_day_total, 10);
r.urban_night_total = parseInt(r.urban_night_total, 10);
r.rural_day_total = parseInt(r.rural_day_total, 10);
r.rural_night_total = parseInt(r.rural_night_total, 10);
});
next();
}, response('enrollment_projection'));
module.exports = enrollmentProjectionApp; module.exports = enrollmentProjectionApp;
\ No newline at end of file
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