Skip to content
Snippets Groups Projects
Commit f2389442 authored by ns17's avatar ns17
Browse files

adding uf/region and quotas filters

parent 9ca69832
No related branches found
No related tags found
2 merge requests!48Development,!43adding uf/region and quotas filters
...@@ -142,6 +142,28 @@ rqf.addField({ ...@@ -142,6 +142,28 @@ rqf.addField({
type: 'integer', type: 'integer',
field: 'ano_censo', field: 'ano_censo',
}, },
})
.addValue({
name: 'region',
table: 'admission_ag',
tableField: 'nome_regiao_ies',
resultField: 'region',
where: {
relation: '=',
type: 'string',
field: 'nome_regiao_ies',
},
})
.addValue({
name: 'uf',
table: 'admission_ag',
tableField: 'sigla_uf_ies',
resultField: 'uf',
where: {
relation: '=',
type: 'string',
field: 'sigla_uf_ies',
},
}); });
admissionApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { admissionApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
......
...@@ -177,6 +177,17 @@ rqf.addField({ ...@@ -177,6 +177,17 @@ rqf.addField({
field: 'apoio_transporte', field: 'apoio_transporte',
}, },
}) })
.addValue({
name: 'quota',
table: 'social_support_ag',
tableField: 'reserva_vagas',
resultField: 'reserva_vagas',
where: {
relation: '=',
type: 'string',
field: 'reserva_vagas',
},
})
.addValue({ .addValue({
name: 'year', name: 'year',
table: 'social_support_ag', table: 'social_support_ag',
...@@ -209,6 +220,28 @@ rqf.addField({ ...@@ -209,6 +220,28 @@ rqf.addField({
type: 'integer', type: 'integer',
field: 'ano_censo', field: 'ano_censo',
}, },
})
.addValue({
name: 'region',
table: 'social_support_ag',
tableField: 'nome_regiao_ies',
resultField: 'region',
where: {
relation: '=',
type: 'string',
field: 'nome_regiao_ies',
},
})
.addValue({
name: 'uf',
table: 'social_support_ag',
tableField: 'sigla_uf_ies',
resultField: 'uf',
where: {
relation: '=',
type: 'string',
field: 'sigla_uf_ies',
},
}); });
social_supportApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => { social_supportApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment