Skip to content
Snippets Groups Projects
Commit f47c9c74 authored by João Kieras's avatar João Kieras Committed by Pietro Cavassin
Browse files

Update school filter(3)

parent 9d68fdf1
No related branches found
No related tags found
4 merge requests!335Homologa,!334Dev,!331Issue 752 aee,!309Merge new updates into master
...@@ -206,10 +206,10 @@ rqf.addField({ ...@@ -206,10 +206,10 @@ rqf.addField({
studentsAeeApp.get('/', rqf.parse(), (req, res, next) => { studentsAeeApp.get('/', rqf.parse(), (req, res, next) => {
req.sql.from('numero_estudantes_aee') req.sql.from('numero_estudantes_aee')
.field('numero_estudantes_aee.ano_censo') .field('ano_censo')
.field('COUNT(distinct numero_estudantes_aee.id_aluno)', 'total') .field('COUNT(distinct id_aluno)', 'total')
.group('numero_estudantes_aee.ano_censo') .group('ano_censo')
.order('numero_estudantes_aee.ano_censo') .order('ano_censo')
next(); next();
}, rqf.build(), (req, res, next) => { }, rqf.build(), (req, res, next) => {
console.log(req.sql.toString()); console.log(req.sql.toString());
......
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