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

Adding uf and region in fies and prouni

parent 878c9149
Branches Add_region_in_institution
No related tags found
3 merge requests!28Development,!26Add region in institution,!21Add region in institution
...@@ -75,6 +75,28 @@ rqf.addField({ ...@@ -75,6 +75,28 @@ rqf.addField({
type: 'integer', type: 'integer',
field: 'ano_censo', field: 'ano_censo',
}, },
})
.addValue({
name: 'uf',
table: 'institution_fies_ag',
tableField: 'sigla_uf',
resultField: 'uf',
where: {
relation: '=',
type: 'string',
field: 'sigla_uf',
},
})
.addValue({
name: 'region',
table: 'institution_fies_ag',
tableField: 'region',
resultField: 'region',
where: {
relation: '=',
type: 'string',
field: 'region',
},
}); });
institution.get('/', rqf.parse(), rqf.build(), (req, res, next) => { institution.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
......
...@@ -75,6 +75,28 @@ rqf.addField({ ...@@ -75,6 +75,28 @@ rqf.addField({
type: 'integer', type: 'integer',
field: 'ano_censo', field: 'ano_censo',
}, },
})
.addValue({
name: 'uf',
table: 'institution_prouni_ag',
tableField: 'sigla_uf',
resultField: 'uf',
where: {
relation: '=',
type: 'string',
field: 'sigla_uf',
},
})
.addValue({
name: 'region',
table: 'institution_prouni_ag',
tableField: 'region',
resultField: 'region',
where: {
relation: '=',
type: 'string',
field: 'region',
},
}); });
institution.get('/', rqf.parse(), rqf.build(), (req, res, next) => { institution.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