Browse Source

Ermittlung Abmeldegrund TSG/MSG #5

basisressourcen
Daniel Quathamer 8 months ago
parent
commit
83ffe002dc
  1. 5
      src-modules/module/costage/conf/costage.xml
  2. 28
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql
  3. 7
      src-modules/module/costage/rohdaten_sos/sos_costage_unload.xml

5
src-modules/module/costage/conf/costage.xml

@ -586,7 +586,10 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</column> </column>
<column name="endedat_tsg" type ="DATE" size ="4" default ="" notnull ="false" description="Datum der Abmeldung (TSG)"/> <column name="endedat_tsg" type ="DATE" size ="4" default ="" notnull ="false" description="Datum der Abmeldung (TSG)"/>
<column name="studiengangs_identifikator_msg" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Studiengang-Identifikator (MSG)" /> <column name="studiengangs_identifikator_msg" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Studiengang-Identifikator (MSG)" />
<column name="abm_art_s_msg" type ="CHAR" size ="10" default ="" notnull ="false" description="Art Abmeldung (studienbezogen) MSG" >
<sourcefield table="costage_st_personen_abmeldungen" name="st_abm_art_kurzbezeichnung" sourcesystem="co" />
<comment>Lookup via: st_studium_nr/st_sem_nr - costage_st_personen_abmeldungen.st_studium_nr/st_sem_nr - costage_st_semester.semester_tid / costage_st_abmeldungsarten.bezug='S'</comment>
</column>
</columns> </columns>
<indexes> <indexes>

28
src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql

@ -120,7 +120,8 @@ beginn_datum,
gueltig_ab, gueltig_ab,
semester, semester,
primaerflag_studien, primaerflag_studien,
hrst hrst,
null::char(10) as abm_art_s
into temp tmp_studien_msg into temp tmp_studien_msg
from tmp_studien T where T.studiengangs_typ_kb in ('MSG') from tmp_studien T where T.studiengangs_typ_kb in ('MSG')
and T.status_historie=1 and T.status_historie=1
@ -128,6 +129,16 @@ and T.status_historie=1
select 10,timestamp_str(now()) from xdummy; select 10,timestamp_str(now()) from xdummy;
--Abmeldungsart studienbezogen:
update tmp_studien_msg set abm_art_s=P.st_abm_art_kurzbezeichnung
from costage_st_personen_abmeldungen P, costage_st_semester S, costage_st_abmeldungsarten A
where S.st_sem_nr=P.st_sem_nr
and S.semester_tid=tmp_studien_msg.semester
and P.st_studium_nr=tmp_studien_msg.st_studium_nr
and A.st_abm_art_kurzbezeichnung=P.st_abm_art_kurzbezeichnung
and A.bezug='S'
;
--wir machen den MSG von einer Zeile zu einer Spalte --wir machen den MSG von einer Zeile zu einer Spalte
--1. Prio TSG hat Primärflag: --1. Prio TSG hat Primärflag:
drop table if exists tmp_studien_esg_tsg; drop table if exists tmp_studien_esg_tsg;
@ -235,7 +246,8 @@ drop table if exists tmp_studien_tsg;
select ETSG.*, select ETSG.*,
MSG.primaerflag_studien as primaerflag_studien_msg, MSG.primaerflag_studien as primaerflag_studien_msg,
MTSG.st_studiengang_nr_msg, MTSG.st_studiengang_nr_msg,
MTSG.studienfach_sortierung MTSG.studienfach_sortierung,
MSG.abm_art_s as abm_art_s_msg
into temp tmp_studien_tsg into temp tmp_studien_tsg
from tmp_studien_esg_tsg ETSG,tmp_studien_msg MSG,costage_st_studiengaenge_mtsg MTSG from tmp_studien_esg_tsg ETSG,tmp_studien_msg MSG,costage_st_studiengaenge_mtsg MTSG
where where
@ -360,6 +372,7 @@ null::char(10) as statustyp_tsg,
T.hzb_note, T.hzb_note,
T.hzb_land_nr, T.hzb_land_nr,
null::char(10) as abm_art_s, null::char(10) as abm_art_s,
null::char(10) as abm_art_s_msg,
T.studienfach_sortierung, T.studienfach_sortierung,
null::timestamp as beginn_datum, null::timestamp as beginn_datum,
null::timestamp AS gueltig_ab, null::timestamp AS gueltig_ab,
@ -372,13 +385,14 @@ from tmp_studien_msg_tsg_fehlend F, tmp_studien_tsg T
where F.st_studstamm_nr=T.st_studstamm_nr where F.st_studstamm_nr=T.st_studstamm_nr
and F.st_studiengang_nr_tsg=T.st_studiengang_nr and F.st_studiengang_nr_tsg=T.st_studiengang_nr
and T.semester=F.endsemester_tsg and T.semester=F.endsemester_tsg
group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,23,24,25,26,27,28,29 ,30 ,31,32 ,33 ,34,35 --,36 group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,23,24,25,26,27,28,29 ,30 ,31,32 ,33 ,34,35,36
; ;
update tmp_studien_msg_tsg_fehlend2 set update tmp_studien_msg_tsg_fehlend2 set
hssem=S.hssem, hssem=S.hssem,
statustyp_tsg=S.statustyp_tsg, statustyp_tsg=S.statustyp_tsg,
abm_art_s=S.abm_art_s, abm_art_s=S.abm_art_s,
abm_art_s_msg=S.abm_art_s_msg,
beginn_datum =S.beginn_datum, beginn_datum =S.beginn_datum,
gueltig_ab=S.gueltig_ab, gueltig_ab=S.gueltig_ab,
st_studienstatus_nr=S.st_studienstatus_nr st_studienstatus_nr=S.st_studienstatus_nr
@ -433,6 +447,7 @@ hzb_datum ,
hzb_note, hzb_note,
hzb_land_nr, hzb_land_nr,
abm_art_s, abm_art_s,
abm_art_s_msg,
fachsemester, fachsemester,
studienfach_sortierung, studienfach_sortierung,
letztes_tsg_semester, letztes_tsg_semester,
@ -473,6 +488,7 @@ hzb_datum ,
hzb_note, hzb_note,
hzb_land_nr, hzb_land_nr,
abm_art_s, abm_art_s,
abm_art_s_msg,
fachsemester, fachsemester,
studienfach_sortierung, studienfach_sortierung,
letztes_tsg_semester, letztes_tsg_semester,
@ -553,6 +569,7 @@ hzb_datum ,
hzb_note, hzb_note,
hzb_land_nr, hzb_land_nr,
abm_art_s, abm_art_s,
abm_art_s_msg,
fachsemester, fachsemester,
studienfach_sortierung, studienfach_sortierung,
letztes_tsg_semester, letztes_tsg_semester,
@ -751,6 +768,7 @@ hzb_datum ,
hzb_note, hzb_note,
hzb_land_nr, hzb_land_nr,
abm_art_s, abm_art_s,
abm_art_s_msg,
fachsemester, fachsemester,
studienfach_sortierung, studienfach_sortierung,
letztes_tsg_semester, letztes_tsg_semester,
@ -828,6 +846,7 @@ st_studium_nr,
hzb_datum, hzb_datum,
hzb_note, hzb_note,
abm_art_s, abm_art_s,
abm_art_s_msg,
po_stp_stp_version_kb, po_stp_stp_version_kb,
po_regelstudienzeit, po_regelstudienzeit,
studiengangs_identifikator_msg, studiengangs_identifikator_msg,
@ -878,6 +897,7 @@ select st_studium_nr,
hzb_datum, hzb_datum,
hzb_note, hzb_note,
abm_art_s, abm_art_s,
abm_art_s_msg,
po_stp_stp_version_kb, po_stp_stp_version_kb,
po_regelstudienzeit, po_regelstudienzeit,
studiengangs_identifikator_msg, studiengangs_identifikator_msg,
@ -920,6 +940,7 @@ st_studium_nr,
hzb_datum, hzb_datum,
hzb_note, hzb_note,
abm_art_s, abm_art_s,
abm_art_s_msg,
po_stp_stp_version_kb, po_stp_stp_version_kb,
po_regelstudienzeit, po_regelstudienzeit,
studiengangs_identifikator_msg, studiengangs_identifikator_msg,
@ -971,6 +992,7 @@ cast (NULL as int) as studiengang_nr2,
hzb_datum, hzb_datum,
hzb_note, hzb_note,
abm_art_s, abm_art_s,
abm_art_s_msg,
po_stp_stp_version_kb, po_stp_stp_version_kb,
po_regelstudienzeit, po_regelstudienzeit,
studiengangs_identifikator_msg, studiengangs_identifikator_msg,

7
src-modules/module/costage/rohdaten_sos/sos_costage_unload.xml

@ -202,8 +202,8 @@ F.semester,
F.studiengang_nr, F.studiengang_nr,
F.fach_nr, F.fach_nr,
F.kz_rueck_beur_ein AS status, F.kz_rueck_beur_ein AS status,
null::char(1) ,--F.beugrund as gdbu, F.urlaub_art::char(10) as gdbu,
null::char(1) ,--F.endegrd as gdex, F.abm_art_p as gdex,
F.fachsemester::integer, F.fachsemester::integer,
F.hrst, F.hrst,
null::integer as klinsem, null::integer as klinsem,
@ -235,7 +235,8 @@ null::char(10) as hssem_valid,
F.kz_rueck_beur_ein_tsg, F.kz_rueck_beur_ein_tsg,
endedat_tsg, endedat_tsg,
urlaub_art as ch27_grund_beurl_tsg, urlaub_art as ch27_grund_beurl_tsg,
abm_art_s as ch62_grund_exmatr_tsg, abm_art_s_msg as abmeldegrund,
abm_art_s as abmeldegrund_tsg,
F.studiengangs_identifikator_msg as degree_program_uniquename F.studiengangs_identifikator_msg as degree_program_uniquename
FROM costage_st_studiengaenge G, costage_st_studien_aggr F FROM costage_st_studiengaenge G, costage_st_studien_aggr F

Loading…
Cancel
Save