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 @@
#!/bin/bash #!/bin/bash
#Entladeumgebung für SuperX #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 ist die Client-Anwendung zum Zugriff auf die DB
SX_CLIENT=jdbc; export SX_CLIENT SX_CLIENT=jdbc; export SX_CLIENT
@ -15,6 +15,12 @@ export LOGGER_PROPERTIES
#export JAVA_OPTS #export JAVA_OPTS
SOURCESYSTEM=co SOURCESYSTEM=co
export SOURCESYSTEM 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: ##Pfad für Entladedaten:
#COSTAGE_LOAD_PFAD=. #COSTAGE_LOAD_PFAD=.

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

@ -4,6 +4,9 @@
<parameters> <parameters>
<param name="VERSION" defaultValue="2" description="Datenbank-Version"><comment>CO-Version, wird derzeit ignoriert</comment></param> <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> </parameters>
<sourcesystems> <sourcesystems>
<sourcesystem name="co" description="CampusOnline-Datenbank" default="true"/> <sourcesystem name="co" description="CampusOnline-Datenbank" default="true"/>
@ -45,11 +48,15 @@ FROM px_st_abschlussziele_lokal_v
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
SELECT st_studium_nr, SELECT F.st_studium_nr,
st_sem_nr, F.st_sem_nr,
fachsemester, F.fachsemester,
fachsemestertyp F.fachsemestertyp
FROM px_st_fachsemester_v 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
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
SELECT st_studstamm_nr, SELECT H.st_studstamm_nr,
st_studium_nr, H.st_studium_nr,
st_sem_nr H.st_sem_nr
FROM px_st_hauptstudien_v 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
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
SELECT st_studstamm_nr, SELECT H.st_studstamm_nr,
st_sem_nr, H.st_sem_nr,
hoererstatus_name, H.hoererstatus_name,
hoererstatus_kb H.hoererstatus_kb
FROM px_st_hoererstatus_v 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
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
SELECT st_sem_nr, SELECT S.st_sem_nr,
semester_id, S.semester_id,
semester_anfang, S.semester_anfang,
semester_ende, S.semester_ende,
semester_bezeichnung, S.semester_bezeichnung,
studienjahr S.studienjahr
FROM px_st_semester_v 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> </extraction-sql>
@ -296,13 +315,17 @@ FROM px_st_studienkennzahlen_v
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
SELECT st_studienstatus_nr, SELECT V.st_studienstatus_nr,
st_studium_nr, V.st_studium_nr,
studienstatustyp, V.studienstatustyp,
beginn_datum, V.beginn_datum,
gueltig_ab, V.gueltig_ab,
st_sem_nr V.st_sem_nr
FROM px_st_studienstatus_v 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
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ select <![CDATA[ select
nr, B.nr,
st_studstamm_nr, B.st_studstamm_nr,
st_sem_nr, B.st_sem_nr,
st_studiengang_nr, B.st_studiengang_nr,
st_studfrm_nr, B.st_studfrm_nr,
bw_sb_svor_nr, B.bw_sb_svor_nr,
bw_zul_art_nr, B.bw_zul_art_nr,
bw_typ_kb, B.bw_typ_kb,
zurueckgezogen_am, B.zurueckgezogen_am,
fristbeginn, B.fristbeginn,
fristende, B.fristende,
einstiegs_fachsemester, B.einstiegs_fachsemester,
fachsemester_gewaehlt, B.fachsemester_gewaehlt,
abgeschickt_datum B.abgeschickt_datum
FROM px_bw_bewerbungen_v 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
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
SELECT st_urlaub_nr, SELECT U.st_urlaub_nr,
st_urlaub_typ_nr, U.st_urlaub_typ_nr,
st_studstamm_nr, U.st_studstamm_nr,
st_sem_nr, U.st_sem_nr,
st_studium_nr U.st_studium_nr
FROM px_st_urlaube_v 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
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
SELECT st_person_abmeldung_nr, SELECT A.st_person_abmeldung_nr,
st_studstamm_nr, A.st_studstamm_nr,
st_studium_nr, A.st_studium_nr,
st_sem_nr, A.st_sem_nr,
st_abm_art_kurzbezeichung, A.st_abm_art_kurzbezeichung,
person_flag, A.person_flag,
st_studienstatus_nr A.st_studienstatus_nr
FROM px_st_personen_abmeldungen_v 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
<comment> </comment> <comment> </comment>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
SELECT st_studstamm_nr, SELECT H.st_studstamm_nr,
st_sem_nr, H.st_sem_nr,
anzahl_hochschulsemester H.anzahl_hochschulsemester
FROM px_st_hochschulsemester_v FROM px_st_hochschulsemester_v H,px_st_semester_v S
where 1=0 --aktuell noch nicht nutzbar 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> </extraction-sql>

Loading…
Cancel
Save