Skip to content
Snippets Groups Projects
Commit 39b0224d authored by Henrique Varella Ehrenfried's avatar Henrique Varella Ehrenfried :speech_balloon:
Browse files

Merge branch 'adding-age-to-taxa-homicidios' into 'development'

Adding age to taxa homicidios

See merge request !36
parents 7f22fd5e 1f6b3b72
No related branches found
No related tags found
2 merge requests!48Development,!36Adding age to taxa homicidios
Pipeline #23626 canceled
......@@ -78,6 +78,30 @@ rqf.addField({
field: 'raca_cor',
},
})
.addValue({
name: 'min_idade',
table: 'taxa_homicidios',
tableField: 'idade_obito_anos',
resultField: 'idade',
where: {
relation: '>=',
type: 'integer',
field: 'idade_obito_anos',
},
})
.addValue({
name: 'max_idade',
table: 'taxa_homicidios',
tableField: 'idade_obito_anos',
resultField: 'idade',
where: {
relation: '<=',
type: 'integer',
field: 'idade_obito_anos',
},
})
router.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
console.log(req.sql.toString());
req.sql.field(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment