Skip to content
Snippets Groups Projects
Commit 2df07471 authored by Gustavo Soviersovski's avatar Gustavo Soviersovski
Browse files

Merge branch 'development' of gitlab.c3sl.ufpr.br:simcaq/simcaq-node into development

parents ba1eb0c9 62efd9c4
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
...@@ -75,16 +75,37 @@ rqf.addField({ ...@@ -75,16 +75,37 @@ rqf.addField({
name: 'dims', name: 'dims',
field: true, field: true,
where: false where: false
}).addValue({ }).addValueToField({
name: 'school', name: 'school',
table: 'escola', table: 'escola',
tableField: 'id', tableField: ['nome_escola', 'id'],
resultField: ['school_name', 'school_id'],
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
field: 'id' field: 'id'
},
join: {
primary: ['id', 'ano_censo'],
foreign: ['escola_id', 'ano_censo'],
foreignTable: 'matricula'
} }
}).addValueToField({ }, 'dims').addValueToField({
name: 'school',
table: 'escola',
tableField: 'nome_escola',
resultField: 'school_name',
where: {
relation: '=',
type: 'integer',
field: 'id'
},
join: {
primary: ['id', 'ano_censo'],
foreign: ['escola_id', 'ano_censo'],
foreignTable: 'matricula'
}
}, 'filter').addValueToField({
name: 'city', name: 'city',
table: 'municipio', table: 'municipio',
tableField: ['nome', 'id'], tableField: ['nome', 'id'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment