Skip to content
Snippets Groups Projects
Commit 94ac9f9e authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Merge branch 'fix_query_enrollment' into development

parents ed9fc5d4 b94ec56b
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -226,12 +226,12 @@ rqf.addField({
}).addValue({
name: 'education_level_basic',
table: 'matricula',
tableField: 'etapa_resumida',
tableField: 'etapas_mod_ensino_segmento_id',
resultField: 'education_level_basic_id',
where: {
relation: '=',
type: 'integer',
field: 'etapa_resumida'
field: 'etapas_mod_ensino_segmento_id'
}
});
......@@ -305,7 +305,7 @@ glossEnrollmentRatioApp.get('/', rqf.parse(),(req, res, next) => {
req.numerator = req.result;
req.resetSql();
log.debug(req.sql.toParam());
req.sql.field('count(*)', 'total')
req.sql.field('sum(peso)', 'total')
.field('pnad.ano_censo','year')
.from('pnad')
.group('pnad.ano_censo')
......
......@@ -226,12 +226,12 @@ rqf.addField({
}).addValue({
name: 'education_level_basic',
table: 'matricula',
tableField: 'etapa_resumida',
tableField: 'etapas_mod_ensino_segmento_id',
resultField: 'education_level_basic_id',
where: {
relation: '=',
type: 'integer',
field: 'etapa_resumida'
field: 'etapas_mod_ensino_segmento_id'
}
});
......@@ -338,7 +338,7 @@ liquidEnrollmentRatioApp.get('/', rqf.parse(),(req, res, next) => {
req.numerator = req.result;
req.resetSql();
log.debug(req.sql.toParam());
req.sql.field('count(*)', 'total')
req.sql.field('sum(peso)', 'total')
.field('pnad.ano_censo','year')
.from('pnad')
.group('pnad.ano_censo')
......
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