Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SMPPIR-Node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
SMPPIR
SMPPIR-Node
Commits
a208643a
Commit
a208643a
authored
5 years ago
by
Fernando Erd
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/v1.11.16'
parents
341175de
4a3a7f04
No related branches found
No related tags found
1 merge request
!28
Development
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
src/libs/routes/universityTeacher.js
+26
-14
26 additions, 14 deletions
src/libs/routes/universityTeacher.js
with
30 additions
and
14 deletions
CHANGELOG.md
+
4
−
0
View file @
a208643a
...
...
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on
[
Keep a Changelog
](
http://keepachangelog.com/
)
and this project adheres to
[
Semantic Versioning
](
http://semver.org/
)
.
## 1..11.16 - 2019-10-30
## Changed
-
University Teacher updated
## 1.11.15 - 2019-10-16
## Changed
-
Fix addMissing for classCount route
...
...
This diff is collapsed.
Click to expand it.
src/libs/routes/universityTeacher.js
+
26
−
14
View file @
a208643a
...
...
@@ -46,8 +46,7 @@ let rqf = new ReqQueryFields();
teacherEnrollmentApp
.
get
(
'
/years
'
,
(
req
,
res
,
next
)
=>
{
req
.
sql
.
from
(
'
docente_ens_superior
'
)
.
field
(
'
DISTINCT docente_ens_superior.ano_censo
'
,
'
year
'
)
.
where
(
'
docente_ens_superior.ano_censo = 2017
'
);
.
field
(
'
DISTINCT docente_ens_superior.ano_censo
'
,
'
year
'
);
next
();
},
query
,
response
(
'
years
'
));
...
...
@@ -303,13 +302,13 @@ rqf.addField({
}).
addValue
({
name
:
'
upper_adm_dependency
'
,
table
:
'
docente_ens_superior
'
,
tableField
:
'
cod
_categoria_administrativa
'
,
tableField
:
'
par
_categoria_administrativa
'
,
resultField
:
'
upper_adm_dependency_id
'
,
where
:
{
relation
:
'
=
'
,
type
:
'
integer
'
,
table
:
'
docente_ens_superior
'
,
field
:
'
cod
_categoria_administrativa
'
field
:
'
par
_categoria_administrativa
'
}
}).
addValue
({
name
:
'
academic_organization
'
,
...
...
@@ -345,12 +344,12 @@ rqf.addField({
}).
addValue
({
name
:
'
teacher_situation
'
,
table
:
'
docente_ens_superior
'
,
tableField
:
'
cod
_situacao_docente
'
,
tableField
:
'
par
_situacao_docente
'
,
resultField
:
'
teacher_situation_id
'
,
where
:
{
relation
:
'
=
'
,
type
:
'
integer
'
,
field
:
'
cod
_situacao_docente
'
field
:
'
par
_situacao_docente
'
}
}).
addValue
({
name
:
'
work_regime
'
,
...
...
@@ -455,22 +454,35 @@ rqf.addField({
}).
addValue
({
name
:
'
deficiency
'
,
table
:
'
docente_ens_superior
'
,
tableField
:
'
docente_deficiencia
'
,
tableField
:
'
par_
docente_deficiencia
'
,
resultField
:
'
deficiency_id
'
,
where
:
{
relation
:
'
=
'
,
type
:
'
integer
'
,
field
:
'
docente_deficiencia
'
field
:
'
par_
docente_deficiencia
'
}
});
teacherEnrollmentApp
.
get
(
'
/
'
,
rqf
.
parse
(),
(
req
,
res
,
next
)
=>
{
if
(
"
university
"
in
req
.
dims
)
{
req
.
sql
.
field
(
'
COUNT(*)
'
,
'
total
'
)
.
field
(
"
'Brasil'
"
,
'
name
'
)
.
field
(
'
docente_ens_superior.ano_censo
'
,
'
year
'
)
.
from
(
'
docente_ens_superior
'
)
.
group
(
'
docente_ens_superior.cod_ies
'
)
.
group
(
'
docente_ens_superior.ano_censo
'
)
.
order
(
'
docente_ens_superior.cod_ies
'
)
.
order
(
'
docente_ens_superior.ano_censo
'
)
}
else
{
req
.
sql
.
field
(
'
COUNT(*)
'
,
'
total
'
)
.
field
(
"
'Brasil'
"
,
'
name
'
)
.
field
(
'
docente_ens_superior.ano_censo
'
,
'
year
'
)
.
from
(
'
docente_ens_superior
'
)
.
group
(
'
docente_ens_superior.ano_censo
'
)
.
order
(
'
docente_ens_superior.ano_censo
'
)
}
next
();
},
rqf
.
build
(),
query
,
addMissing
(
rqf
),
id2str
.
transform
(
false
),
response
(
'
teacherEnrollment
'
));
...
...
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