Skip to content
Snippets Groups Projects
Commit 8cbee83d authored by Henrique Varella Ehrenfried's avatar Henrique Varella Ehrenfried :speech_balloon:
Browse files

Merge branch 'social_support' into 'development'

adding uf/region and quotas filters

See merge request !43
parents 9ca69832 f2389442
No related branches found
No related tags found
2 merge requests!48Development,!43adding uf/region and quotas filters
Pipeline #23978 failed
......@@ -142,6 +142,28 @@ rqf.addField({
type: 'integer',
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) => {
......
......@@ -177,6 +177,17 @@ rqf.addField({
field: 'apoio_transporte',
},
})
.addValue({
name: 'quota',
table: 'social_support_ag',
tableField: 'reserva_vagas',
resultField: 'reserva_vagas',
where: {
relation: '=',
type: 'string',
field: 'reserva_vagas',
},
})
.addValue({
name: 'year',
table: 'social_support_ag',
......@@ -209,6 +220,28 @@ rqf.addField({
type: 'integer',
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) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment