Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
simcaq-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
44761aa3
Commit
44761aa3
authored
6 years ago
by
Vytor Calixto
Browse files
Options
Downloads
Plain Diff
Merge branch 'issue/423' into development
Related: simcaq/SCRUM#423
parents
53b2795f
98c195a9
No related branches found
No related tags found
No related merge requests found
Pipeline
#18482
failed
6 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/libs/convert/educationLevelSchoolYear.js
+1
-1
1 addition, 1 deletion
src/libs/convert/educationLevelSchoolYear.js
src/libs/routes/enrollmentProjection.js
+12
-1
12 additions, 1 deletion
src/libs/routes/enrollmentProjection.js
with
13 additions
and
2 deletions
src/libs/convert/educationLevelSchoolYear.js
+
1
−
1
View file @
44761aa3
...
@@ -14,7 +14,7 @@ module.exports = function educationLevelSchoolYear(id) {
...
@@ -14,7 +14,7 @@ module.exports = function educationLevelSchoolYear(id) {
case
33
:
return
'
Ens. Fundamental - 2ª série/3º ano
'
;
case
33
:
return
'
Ens. Fundamental - 2ª série/3º ano
'
;
case
34
:
return
'
Ens. Fundamental - 3ª série/4º ano
'
;
case
34
:
return
'
Ens. Fundamental - 3ª série/4º ano
'
;
case
35
:
return
'
Ens. Fundamental - 4ª série/5º Ano
'
;
case
35
:
return
'
Ens. Fundamental - 4ª série/5º Ano
'
;
case
4
:
return
'
Ensino Fundament
o
- anos finais
'
;
case
4
:
return
'
Ensino Fundament
al
- anos finais
'
;
case
41
:
return
'
Ens. Fundamental - 5ª série/6º ano
'
;
case
41
:
return
'
Ens. Fundamental - 5ª série/6º ano
'
;
case
42
:
return
'
Ens. Fundamental - 6ª série/7º ano
'
;
case
42
:
return
'
Ens. Fundamental - 6ª série/7º ano
'
;
case
43
:
return
'
Ens. Fundamental - 7ª série/8º ano
'
;
case
43
:
return
'
Ens. Fundamental - 7ª série/8º ano
'
;
...
...
This diff is collapsed.
Click to expand it.
src/libs/routes/enrollmentProjection.js
+
12
−
1
View file @
44761aa3
...
@@ -117,12 +117,23 @@ enrollmentProjectionApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
...
@@ -117,12 +117,23 @@ enrollmentProjectionApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
.
field
(
'
projecao_matricula.etapa_ensino_escola_ano_id
'
,
'
education_level_school_year_id
'
)
.
field
(
'
projecao_matricula.etapa_ensino_escola_ano_id
'
,
'
education_level_school_year_id
'
)
.
field
(
'
projecao_matricula.ano_censo
'
,
'
year
'
)
.
field
(
'
projecao_matricula.ano_censo
'
,
'
year
'
)
.
from
(
'
projecao_matricula
'
)
.
from
(
'
projecao_matricula
'
)
.
where
(
'
projecao_matricula.etapa_ensino_escola_ano_id <> 7 AND projecao_matricula.etapa_ensino_escola_ano_id < 71
'
)
.
group
(
'
projecao_matricula.etapa_ensino_escola_ano_id
'
)
.
group
(
'
projecao_matricula.etapa_ensino_escola_ano_id
'
)
.
group
(
'
projecao_matricula.ano_censo
'
)
.
group
(
'
projecao_matricula.ano_censo
'
)
.
order
(
'
projecao_matricula.ano_censo
'
)
.
order
(
'
projecao_matricula.ano_censo
'
)
.
order
(
'
projecao_matricula.etapa_ensino_escola_ano_id
'
);
.
order
(
'
projecao_matricula.etapa_ensino_escola_ano_id
'
);
next
();
next
();
},
query
,
id2str
.
transform
(),
response
(
'
enrollment_projection
'
));
},
query
,
id2str
.
transform
(),
(
req
,
res
,
next
)
=>
{
req
.
result
.
forEach
((
r
)
=>
{
r
.
urban_day_total
=
parseInt
(
r
.
urban_day_total
,
10
);
r
.
urban_night_total
=
parseInt
(
r
.
urban_night_total
,
10
);
r
.
rural_day_total
=
parseInt
(
r
.
rural_day_total
,
10
);
r
.
rural_night_total
=
parseInt
(
r
.
rural_night_total
,
10
);
});
next
();
},
response
(
'
enrollment_projection
'
));
module
.
exports
=
enrollmentProjectionApp
;
module
.
exports
=
enrollmentProjectionApp
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment