diff --git a/src/libs/routes/SMPPIR/admission.js b/src/libs/routes/SMPPIR/admission.js index 80245eb274aa0e164455fbbc3e09a63dec7b4160..65bfea2adfec9224ff054984eb183f3b2e0ccfcf 100644 --- a/src/libs/routes/SMPPIR/admission.js +++ b/src/libs/routes/SMPPIR/admission.js @@ -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) => { diff --git a/src/libs/routes/SMPPIR/social_support.js b/src/libs/routes/SMPPIR/social_support.js index 4a5752646203a012d2c2fc92fb7b0190a2c3835b..6d55304f039b2d643ba57e2fd256dfa4ab72ae8b 100644 --- a/src/libs/routes/SMPPIR/social_support.js +++ b/src/libs/routes/SMPPIR/social_support.js @@ -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) => {