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

Update enrollment.js

parent c3399f24
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!44Feature multiple where
Pipeline #
......@@ -319,17 +319,17 @@ enrollmentApp.get('/offer_projection', simRqf.parse(), simRqf.build(), (req, res
req.sql.field('uc408.ano_censo', 'offerYear')
.field('uc408.turma_turno_id', 'period_id')
.field('etapa_ensino.desc_etapa', 'education_level_name')
.field('etapa_ensino.id', 'education_level_id')
.field('etapa_mod_ensino_segmento.nome', 'education_level_name')
.field('etapa_mod_ensino_segmento.id', 'education_level_id')
.field('uc408.serie_ano_id', 'school_year_id')
.field('SUM(uc408.matriculas)', 'currentOffer')
.from('uc408')
.join('etapa_ensino', null, 'uc408.etapas_mod_ensino_segmento_id=etapa_ensino.id')
.join('etapa_mod_ensino_segmento', null, 'uc408.etapas_mod_ensino_segmento_id=etapa_mod_ensino_segmento.id')
.where('uc408.turma_turno_id <= 2')
.group('uc408.ano_censo')
.group('uc408.turma_turno_id')
.group('etapa_ensino.desc_etapa')
.group('etapa_ensino.id')
.group('etapa_mod_ensino_segmento.nome')
.group('etapa_mod_ensino_segmento.id')
.group('uc408.serie_ano_id');
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