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

Change docente_id

parent fb1bddcb
No related branches found
No related tags found
1 merge request!184Change docente
Pipeline #19784 failed
......@@ -322,7 +322,7 @@ rqf.addField({
// LDE
auxiliarApp.get('/', rqf.parse(), (req, res, next) => {
req.sql.field('COUNT(DISTINCT docente.id)', 'total')
req.sql.field('COUNT(DISTINCT docente.id_docente)', 'total')
.field("'Brasil'", 'name')
.field('docente.ano_censo', 'year')
.from('docente')
......@@ -334,7 +334,7 @@ auxiliarApp.get('/', rqf.parse(), (req, res, next) => {
// SimCAQ
auxiliarApp.get('/count', rqf.parse(), (req, res, next) => {
req.sql.field('COUNT(DISTINCT docente.id)', 'total')
req.sql.field('COUNT(DISTINCT docente.id_docente)', 'total')
.field("'Brasil'", 'name')
.field('docente.ano_censo', 'year')
.from('docente')
......
......@@ -100,7 +100,7 @@ rqf.addField({
portalMecApp.get('/', rqf.parse(), (req, res, next) => {
req.sql.field('docente.id')
req.sql.field('docente.id_docente')
.field('docente.ano_censo', 'year')
.field('docente.cod_quimica', 'Química')
.field('docente.cod_fisica', 'Física')
......
......@@ -389,7 +389,7 @@ rqf.addField({
});
teacherApp.get('/', rqf.parse(), (req, res, next) => {
req.sql.field('COUNT(DISTINCT docente.id)', 'total')
req.sql.field('COUNT(DISTINCT docente.id_docente)', 'total')
.field("'Brasil'", 'name')
.field('docente.ano_censo', 'year')
.from('docente')
......@@ -413,7 +413,7 @@ teacherApp.get('/', rqf.parse(), (req, res, next) => {
if(req.hadEducationLevelMod) {
req.sql = squel.select()
.field('COUNT(DISTINCT docente.id)', 'total')
.field('COUNT(DISTINCT docente.id_docente)', 'total')
.field("'Brasil'", 'name')
.field('docente.ano_censo', 'year')
.from('docente')
......
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