Skip to content
Snippets Groups Projects
Commit f866f7de authored by lgtg20's avatar lgtg20
Browse files

Fix current issues

parent 98f19a92
No related branches found
No related tags found
3 merge requests!434Homologa,!431Development,!430Fix current issues
...@@ -40,6 +40,8 @@ module.exports = function educationLevelMod(id) { ...@@ -40,6 +40,8 @@ module.exports = function educationLevelMod(id) {
return 'EJA - EF e EM Integrado - tecnico'; return 'EJA - EF e EM Integrado - tecnico';
case 10: case 10:
return 'Educacao Profissional - concomitante e subsequente'; return 'Educacao Profissional - concomitante e subsequente';
case 11:
return 'suporte_total'
default: default:
return 'Não classificada'; return 'Não classificada';
} }
......
...@@ -62,7 +62,6 @@ function aggregateData(req, res, next) { ...@@ -62,7 +62,6 @@ function aggregateData(req, res, next) {
'age_range_entity', 'age_range_entity',
'post_graduation_entity', 'post_graduation_entity',
'contract_type_entity', 'contract_type_entity',
'total_doc',
'education_degree_entity' 'education_degree_entity'
] ]
let id; let id;
......
...@@ -302,14 +302,6 @@ employeesAggregateApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { ...@@ -302,14 +302,6 @@ employeesAggregateApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
.order('escola.ano_censo') .order('escola.ano_censo')
.where('escola.situacao_funcionamento_pareada = 1 and (escola.ensino_regular = 1 or escola.ensino_eja = 1 or escola.educacao_profissional = 1)'); .where('escola.situacao_funcionamento_pareada = 1 and (escola.ensino_regular = 1 or escola.ensino_eja = 1 or escola.educacao_profissional = 1)');
} }
else if (req.query.dims && req.query.dims.includes('total_doc')) {
req.sql.from('escola')
.field('SUM(escola.qt_doc_bas)', 'total_doc_bas')
.field('escola.ano_censo', 'year')
.group('escola.ano_censo')
.order('escola.ano_censo')
.where('escola.situacao_funcionamento_pareada = 1 and (escola.ensino_regular = 1 or escola.ensino_eja = 1 or escola.educacao_profissional = 1)');
}
else { else {
req.sql.from('escola') req.sql.from('escola')
.field('SUM(escola.qt_doc_bas)', 'total') .field('SUM(escola.qt_doc_bas)', 'total')
......
...@@ -493,10 +493,9 @@ rqf.addField({ ...@@ -493,10 +493,9 @@ rqf.addField({
tableField: 'localizacao_diferenciada_par', tableField: 'localizacao_diferenciada_par',
resultField: 'diff_location_id', resultField: 'diff_location_id',
where: { where: {
relation: 'is not null', relation: '=',
type: 'integer', type: 'integer',
field: 'localizacao_diferenciada_par', field: 'localizacao_diferenciada_par',
value: 'null'
} }
}).addValue({ }).addValue({
name: 'government_agreement', name: 'government_agreement',
...@@ -563,6 +562,7 @@ enrollmentAggregateApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { ...@@ -563,6 +562,7 @@ enrollmentAggregateApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
.field('SUM(escola.qt_mat_eja_med_agg)', 'total_eja_med') .field('SUM(escola.qt_mat_eja_med_agg)', 'total_eja_med')
.field('SUM(escola.qt_mat_eja_fund_fic + escola.qt_mat_eja_med_fic + escola.qt_mat_eja_med_tec)', 'total_tec') .field('SUM(escola.qt_mat_eja_fund_fic + escola.qt_mat_eja_med_fic + escola.qt_mat_eja_med_tec)', 'total_tec')
.field('SUM(escola.qt_mat_prof_agg)', 'total_prof') .field('SUM(escola.qt_mat_prof_agg)', 'total_prof')
.field('SUM(escola.qt_mat_bas)', 'total_total')
.field('escola.ano_censo', 'year') .field('escola.ano_censo', 'year')
.group('escola.ano_censo') .group('escola.ano_censo')
.order('escola.ano_censo') .order('escola.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