Skip to content
Snippets Groups Projects
Commit 6b7b7f8a authored by Leon A. Okida Gonçalves's avatar Leon A. Okida Gonçalves
Browse files

Add city_name, city_id, state_name, state_id fields to new routes

parent 009d17e5
No related branches found
No related tags found
4 merge requests!377prd_version of simcaq,!368update filter in v2 school,!360Development,!359Fix fields in city/state filters, add year filter to division of responsibility route
...@@ -55,7 +55,8 @@ rqf.addField({ ...@@ -55,7 +55,8 @@ rqf.addField({
}).addValue({ }).addValue({
name: 'city', name: 'city',
table: 'municipio', table: 'municipio',
tableField: 'id', tableField: ['nome', 'id'],
resultField: ['city_name', 'city_id'],
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
...@@ -69,7 +70,8 @@ rqf.addField({ ...@@ -69,7 +70,8 @@ rqf.addField({
}, 'dims').addValue({ }, 'dims').addValue({
name: 'state', name: 'state',
table: 'estado', table: 'estado',
tableField: 'id', tableField: ['nome', 'id'],
resultField: ['state_name', 'state_id'],
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
......
...@@ -64,7 +64,8 @@ rqf.addField({ ...@@ -64,7 +64,8 @@ rqf.addField({
}).addValue({ }).addValue({
name: 'city', name: 'city',
table: 'municipio', table: 'municipio',
tableField: 'id', tableField: ['nome', 'id'],
resultField: ['city_name', 'city_id'],
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
...@@ -78,7 +79,8 @@ rqf.addField({ ...@@ -78,7 +79,8 @@ rqf.addField({
}, 'dims').addValue({ }, 'dims').addValue({
name: 'state', name: 'state',
table: 'estado', table: 'estado',
tableField: 'id', tableField: ['nome', 'id'],
resultField: ['state_name', 'state_id'],
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
......
...@@ -73,7 +73,8 @@ rqf.addField({ ...@@ -73,7 +73,8 @@ rqf.addField({
}).addValue({ }).addValue({
name: 'city', name: 'city',
table: 'municipio', table: 'municipio',
tableField: 'id', tableField: ['nome', 'id'],
resultField: ['city_name', 'city_id'],
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
...@@ -87,7 +88,8 @@ rqf.addField({ ...@@ -87,7 +88,8 @@ rqf.addField({
}, 'dims').addValue({ }, 'dims').addValue({
name: 'state', name: 'state',
table: 'estado', table: 'estado',
tableField: 'id', tableField: ['nome', 'id'],
resultField: ['state_name', 'state_id'],
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
......
...@@ -64,7 +64,8 @@ rqf.addField({ ...@@ -64,7 +64,8 @@ rqf.addField({
}).addValue({ }).addValue({
name: 'city', name: 'city',
table: 'municipio', table: 'municipio',
tableField: 'id', tableField: ['nome', 'id'],
resultField: ['city_name', 'city_id'],
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
...@@ -78,7 +79,8 @@ rqf.addField({ ...@@ -78,7 +79,8 @@ rqf.addField({
}, 'dims').addValue({ }, 'dims').addValue({
name: 'state', name: 'state',
table: 'estado', table: 'estado',
tableField: 'id', tableField: ['nome', 'id'],
resultField: ['state_name', 'state_id'],
where: { where: {
relation: '=', relation: '=',
type: 'integer', type: 'integer',
......
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