Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSE
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
OSE
Commits
289229d4
Commit
289229d4
authored
Oct 11, 2021
by
Antony Le Courtes
Browse files
Options
Downloads
Patches
Plain Diff
Affinage de la MV_INTERVENANT pour certains cas 'Autres'
parent
2742b242
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/Connecteurs-Import/Octopus/MV_INTERVENANT.sql
+3
-3
3 additions, 3 deletions
doc/Connecteurs-Import/Octopus/MV_INTERVENANT.sql
with
3 additions
and
3 deletions
doc/Connecteurs-Import/Octopus/MV_INTERVENANT.sql
+
3
−
3
View file @
289229d4
...
@@ -18,7 +18,7 @@ MATERIALIZED VIEW MV_INTERVENANT AS
...
@@ -18,7 +18,7 @@ MATERIALIZED VIEW MV_INTERVENANT AS
WHEN
icto
.
code_ose
IS
NOT
NULL
THEN
icto
.
code_ose
WHEN
icto
.
code_ose
IS
NOT
NULL
THEN
icto
.
code_ose
ELSE
'AUTRES'
END
z_statut_id
,
ELSE
'AUTRES'
END
z_statut_id
,
CASE
CASE
WHEN
icto
.
code_ose
IS
NOT
NULL
AND
icto
.
code_ose
NOT
IN
(
'
BIATSS'
,
'
NON_AUTORISE'
)
THEN
'permanent'
WHEN
icto
.
code_ose
IS
NOT
NULL
AND
icto
.
code_ose
NOT
IN
(
'NON_AUTORISE'
)
THEN
'permanent'
ELSE
'vacataire'
END
z_type
,
ELSE
'vacataire'
END
z_type
,
icto
.
id_orig
source_code
,
icto
.
id_orig
source_code
,
COALESCE
(
icto
.
d_debut
,
to_date
(
'01/01/1900'
,
'dd/mm/YYYY'
))
validite_debut
,
COALESCE
(
icto
.
d_debut
,
to_date
(
'01/01/1900'
,
'dd/mm/YYYY'
))
validite_debut
,
...
@@ -52,7 +52,7 @@ MATERIALIZED VIEW MV_INTERVENANT AS
...
@@ -52,7 +52,7 @@ MATERIALIZED VIEW MV_INTERVENANT AS
FROM
octo
.
individu_unique
@
octoprod
uni
FROM
octo
.
individu_unique
@
octoprod
uni
JOIN
octo
.
individu_statut
@
octoprod
inds
ON
inds
.
individu_id
=
uni
.
c_individu_chaine
JOIN
octo
.
individu_statut
@
octoprod
inds
ON
inds
.
individu_id
=
uni
.
c_individu_chaine
LEFT
JOIN
octo
.
v_individu_statut
@
octoprod
vinds
ON
vinds
.
individu_id
=
uni
.
c_individu_chaine
LEFT
JOIN
octo
.
v_individu_statut
@
octoprod
vinds
ON
vinds
.
individu_id
=
uni
.
c_individu_chaine
LEFT
JOIN
octo
.
v_individu_contrat_type_ose
@
octoprod
icto
ON
uni
.
c_individu_chaine
=
icto
.
individu_id
AND
(
icto
.
d_debut
-
184
<=
SYSDATE
OR
icto
.
d_fin
>=
SYSDATE
)
AND
icto
.
code_ose
IS
NOT
NULL
AND
icto
.
code_ose
!=
'NON_AUTORISE'
LEFT
JOIN
octo
.
v_individu_contrat_type_ose
@
octoprod
icto
ON
uni
.
c_individu_chaine
=
icto
.
individu_id
AND
icto
.
d_debut
-
184
<=
SYSDATE
AND
icto
.
d_fin
>=
SYSDATE
AND
icto
.
code_ose
IS
NOT
NULL
AND
icto
.
code_ose
NOT
IN
(
'NON_AUTORISE'
)
WHERE
inds
.
d_debut
-
184
<=
SYSDATE
WHERE
inds
.
d_debut
-
184
<=
SYSDATE
--On ne remonte pas de statut autre pour ceux qui ont déjà un certain type de contrat
--On ne remonte pas de statut autre pour ceux qui ont déjà un certain type de contrat
--AND icto.individu_id IS NULL
--AND icto.individu_id IS NULL
...
...
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