diff --git a/src/libs/routes/SMPPIR/institutionFIES.js b/src/libs/routes/SMPPIR/institutionFIES.js index f60189abf034bfee4c7de4fa5455a28417ce9a4b..076b3d53862680bfde298dcd973a77f6ebf22ae0 100644 --- a/src/libs/routes/SMPPIR/institutionFIES.js +++ b/src/libs/routes/SMPPIR/institutionFIES.js @@ -75,6 +75,28 @@ rqf.addField({ type: 'integer', 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) => { diff --git a/src/libs/routes/SMPPIR/institutionPROUNI.js b/src/libs/routes/SMPPIR/institutionPROUNI.js index 5048bb0d130829cc3a9fec1b2d0aa1e2f395c40f..26af887fe97ab2b06f048f1eefa88ebf422cfe4a 100644 --- a/src/libs/routes/SMPPIR/institutionPROUNI.js +++ b/src/libs/routes/SMPPIR/institutionPROUNI.js @@ -75,6 +75,28 @@ rqf.addField({ type: 'integer', 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) => {