Browse Source

Enable Unload Start semester #8

COStage_0.3_Release
Daniel Quathamer 3 years ago
parent
commit
f786fe7604
  1. 8
      src-modules/module/costage/rohdaten/COSTAGE_ENV.sam
  2. 165
      src-modules/module/costage/rohdaten/costage_unload.xml

8
src-modules/module/costage/rohdaten/COSTAGE_ENV.sam

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
#!/bin/bash
#Entladeumgebung für SuperX
#Die folgenden Parameter m<EFBFBD>ssen angepasst werden
#Die folgenden Parameter müssen angepasst werden
# SX_CLIENT ist die Client-Anwendung zum Zugriff auf die DB
SX_CLIENT=jdbc; export SX_CLIENT
@ -15,6 +15,12 @@ export LOGGER_PROPERTIES @@ -15,6 +15,12 @@ export LOGGER_PROPERTIES
#export JAVA_OPTS
SOURCESYSTEM=co
export SOURCESYSTEM
COSTAGE_start_st_sem=20001
export COSTAGE_start_st_sem
COSTAGE_start_bw_sem=20001
export COSTAGE_start_bw_sem
COSTAGE_start_leistungen_sem=20001
export COSTAGE_start_leistungen_sem
##Pfad für Entladedaten:
#COSTAGE_LOAD_PFAD=.

165
src-modules/module/costage/rohdaten/costage_unload.xml

@ -4,6 +4,9 @@ @@ -4,6 +4,9 @@
<parameters>
<param name="VERSION" defaultValue="2" description="Datenbank-Version"><comment>CO-Version, wird derzeit ignoriert</comment></param>
<param name="COSTAGE_start_st_sem" defaultValue="19911" description="Startsemester Studierende"><comment>Ab welchem Semester sollen Studierende entladen werden? z.B. 20011 für SS 2001</comment></param>
<param name="COSTAGE_start_bw_sem" defaultValue="19911" description="Startsemester Bewerbungen"><comment>Ab welchem Semester sollen Bewerbungen entladen werden? z.B. 20011 für SS 2001</comment></param>
<param name="COSTAGE_start_leistungen_sem" defaultValue="19911" description="Startsemester Prüfungen"><comment>Ab welchem Semester sollen Leistungen entladen werden? z.B. 20011 für SS 2001</comment></param>
</parameters>
<sourcesystems>
<sourcesystem name="co" description="CampusOnline-Datenbank" default="true"/>
@ -45,11 +48,15 @@ FROM px_st_abschlussziele_lokal_v @@ -45,11 +48,15 @@ FROM px_st_abschlussziele_lokal_v
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_studium_nr,
st_sem_nr,
fachsemester,
fachsemestertyp
FROM px_st_fachsemester_v
SELECT F.st_studium_nr,
F.st_sem_nr,
F.fachsemester,
F.fachsemestertyp
FROM px_st_fachsemester_v F,px_st_semester_v S
where S.st_sem_nr=F.st_sem_nr
and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_st_sem
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
;
]]>
@ -79,10 +86,15 @@ FROM px_st_fakultaeten_v @@ -79,10 +86,15 @@ FROM px_st_fakultaeten_v
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_studstamm_nr,
st_studium_nr,
st_sem_nr
FROM px_st_hauptstudien_v
SELECT H.st_studstamm_nr,
H.st_studium_nr,
H.st_sem_nr
FROM px_st_hauptstudien_v H,px_st_semester_v S
where S.st_sem_nr=H.st_sem_nr
and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_st_sem
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
;
]]>
@ -93,11 +105,15 @@ FROM px_st_hauptstudien_v @@ -93,11 +105,15 @@ FROM px_st_hauptstudien_v
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_studstamm_nr,
st_sem_nr,
hoererstatus_name,
hoererstatus_kb
FROM px_st_hoererstatus_v
SELECT H.st_studstamm_nr,
H.st_sem_nr,
H.hoererstatus_name,
H.hoererstatus_kb
FROM px_st_hoererstatus_v H,px_st_semester_v S
where S.st_sem_nr=H.st_sem_nr
and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_st_sem
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
;
]]>
@ -161,13 +177,16 @@ FROM px_st_personen_v @@ -161,13 +177,16 @@ FROM px_st_personen_v
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_sem_nr,
semester_id,
semester_anfang,
semester_ende,
semester_bezeichnung,
studienjahr
FROM px_st_semester_v
SELECT S.st_sem_nr,
S.semester_id,
S.semester_anfang,
S.semester_ende,
S.semester_bezeichnung,
S.studienjahr
FROM px_st_semester_v S
where to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_st_sem
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
;
]]>
</extraction-sql>
@ -296,13 +315,17 @@ FROM px_st_studienkennzahlen_v @@ -296,13 +315,17 @@ FROM px_st_studienkennzahlen_v
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_studienstatus_nr,
st_studium_nr,
studienstatustyp,
beginn_datum,
gueltig_ab,
st_sem_nr
FROM px_st_studienstatus_v
SELECT V.st_studienstatus_nr,
V.st_studium_nr,
V.studienstatustyp,
V.beginn_datum,
V.gueltig_ab,
V.st_sem_nr
FROM px_st_studienstatus_v V, px_st_semester_v S
where S.st_sem_nr=V.st_sem_nr
and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_st_sem
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
;
]]>
@ -337,21 +360,25 @@ FROM px_st_studierendenstammdaten_v @@ -337,21 +360,25 @@ FROM px_st_studierendenstammdaten_v
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ select
nr,
st_studstamm_nr,
st_sem_nr,
st_studiengang_nr,
st_studfrm_nr,
bw_sb_svor_nr,
bw_zul_art_nr,
bw_typ_kb,
zurueckgezogen_am,
fristbeginn,
fristende,
einstiegs_fachsemester,
fachsemester_gewaehlt,
abgeschickt_datum
FROM px_bw_bewerbungen_v
B.nr,
B.st_studstamm_nr,
B.st_sem_nr,
B.st_studiengang_nr,
B.st_studfrm_nr,
B.bw_sb_svor_nr,
B.bw_zul_art_nr,
B.bw_typ_kb,
B.zurueckgezogen_am,
B.fristbeginn,
B.fristende,
B.einstiegs_fachsemester,
B.fachsemester_gewaehlt,
B.abgeschickt_datum
FROM px_bw_bewerbungen_v B,px_st_semester_v S
where S.st_sem_nr=B.st_sem_nr
and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_bw_sem
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
;
]]>
@ -510,12 +537,16 @@ FROM px_st_adressen_v @@ -510,12 +537,16 @@ FROM px_st_adressen_v
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_urlaub_nr,
st_urlaub_typ_nr,
st_studstamm_nr,
st_sem_nr,
st_studium_nr
FROM px_st_urlaube_v
SELECT U.st_urlaub_nr,
U.st_urlaub_typ_nr,
U.st_studstamm_nr,
U.st_sem_nr,
U.st_studium_nr
FROM px_st_urlaube_v U,px_st_semester_v S
where S.st_sem_nr=U.st_sem_nr
and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_st_sem
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
;
]]>
@ -554,14 +585,18 @@ where st_abm_art_kurzbezeichnung is not null @@ -554,14 +585,18 @@ where st_abm_art_kurzbezeichnung is not null
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_person_abmeldung_nr,
st_studstamm_nr,
st_studium_nr,
st_sem_nr,
st_abm_art_kurzbezeichung,
person_flag,
st_studienstatus_nr
FROM px_st_personen_abmeldungen_v
SELECT A.st_person_abmeldung_nr,
A.st_studstamm_nr,
A.st_studium_nr,
A.st_sem_nr,
A.st_abm_art_kurzbezeichung,
A.person_flag,
A.st_studienstatus_nr
FROM px_st_personen_abmeldungen_v A,px_st_semester_v S
where S.st_sem_nr=A.st_sem_nr
and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_st_sem
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
;
]]>
@ -583,12 +618,16 @@ FROM px_st_ersthochschulen_v @@ -583,12 +618,16 @@ FROM px_st_ersthochschulen_v
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT st_studstamm_nr,
st_sem_nr,
anzahl_hochschulsemester
FROM px_st_hochschulsemester_v
where 1=0 --aktuell noch nicht nutzbar
;
SELECT H.st_studstamm_nr,
H.st_sem_nr,
H.anzahl_hochschulsemester
FROM px_st_hochschulsemester_v H,px_st_semester_v S
where S.st_sem_nr=H.st_sem_nr
and H.anzahl_hochschulsemester >0
and to_number('20' || replace(replace(S.semester_id,'S','1'),'W','2')) >= $COSTAGE_start_st_sem
and current_date+365 > S.semester_anfang
and extract(year from S.semester_anfang) > 2000
;
]]>
</extraction-sql>

Loading…
Cancel
Save