Browse Source

Primärflag aus px_st_studien_v laden #15

basisressourcen
Daniel Quathamer 1 year ago
parent
commit
9899dfcb17
  1. 65
      src-modules/module/costage/conf/costage.xml
  2. 103
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql
  3. 18
      src-modules/module/costage/rohdaten/costage_unload.xml
  4. 2
      src-modules/module/costage/rohdaten/csv_unloads2unl.sql
  5. 21
      src-modules/module/costage/rohdaten_sos/sos_costage_unload.xml
  6. 24
      src-modules/module/costage/rohdaten_zul/zul_costage_unload.xml

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

@ -488,14 +488,14 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -488,14 +488,14 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table>
<table name="costage_st_hzb" thema="Studierende und Gebühren" caption="Schulische Vorbildung (CO)" typ="Datentabelle" releaseUnload="empty">
<columns><column name="nr" type ="INTEGER" size ="4" default ="" isKey="true" notnull ="true" />
<column name="hzb_land_nr" type ="INTEGER" size ="4" default ="" notnull ="false" />
<column name="hzb_land_sub_r_nr" type ="INTEGER" size ="4" default ="" notnull ="false" />
<column name="hzb_art_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="hzb_jahr" type ="INTEGER" size ="4" default ="" notnull ="false" />
<column name="hzb_datum" type ="DATE" size ="7" default ="" notnull ="true" />
<column name="hzb_note" type ="VARCHAR" size ="40" default ="" notnull ="false" />
<column name="st_person_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<columns><column name="nr" type ="INTEGER" size ="4" default ="" isKey="true" notnull ="true" description="Nr" />
<column name="hzb_land_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="HZB-Staat"/>
<column name="hzb_land_sub_r_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="HZB-Ort"/>
<column name="hzb_art_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="HZB-Art"/>
<column name="hzb_jahr" type ="INTEGER" size ="4" default ="" notnull ="false" description="HZB-Jahr"/>
<column name="hzb_datum" type ="DATE" size ="7" default ="" notnull ="true" description="HZB Datum "/>
<column name="hzb_note" type ="VARCHAR" size ="40" default ="" notnull ="false" description="HZB-Note"/>
<column name="st_person_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Studierenden-Laufnr."/>
</columns>
<indexes></indexes>
<primaryKeys><rs>
@ -534,26 +534,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -534,26 +534,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="endedat" type ="DATE" size ="4" default ="" notnull ="false" description="Datum der Exmatr."/>
<column name="stufrm" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienform"/>
<column name="kz_rueck_beur_ein" type ="SMALLINT" size ="2" default ="" notnull ="false" description="Rückmeldestatus (amtlich)" />
<column name="hzb_art" type ="CHAR" size ="10" default ="" notnull ="false" description="Art der HZB (amtlich)" >
<sourcefield table="costage_bw_bewerb_hzb" name="hzb_art_stla_code" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_bw_bewerbungen.st_studstamm_nr - costage_bw_bewerbungen.nr - costage_bw_bewerb_hzb.bw_bewrbng_nr </comment>
</column>
<column name="hzb_datum" type ="DATE" size ="10" default ="" notnull ="false" description="Datum der HZB (Zeugnisdatum)" >
<sourcefield table="costage_bw_bewerb_hzb" name="zeugnisdatum" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_bw_bewerbungen.st_studstamm_nr - costage_bw_bewerbungen.nr - costage_bw_bewerb_hzb.bw_bewrbng_nr - costage_bw_bewerb_hzb.zeugnisdatum</comment>
</column>
<column name="hzb_note" type ="FLOAT" size ="10" default ="" notnull ="false" description="Note der HZB" >
<sourcefield table="costage_bw_bewerb_hzb" name="hzb_note" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_bw_bewerbungen.st_studstamm_nr - costage_bw_bewerbungen.nr - costage_bw_bewerb_hzb.bw_bewrbng_nr - costage_bw_bewerb_hzb.hzb_note</comment>
</column>
<column name="hzb_ort" type ="INTEGER" size ="10" default ="" notnull ="false" description="Landkreis der HZB" >
<sourcefield table="costage_bw_bewerb_hzb" name="land_sub_r_nr" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_bw_bewerbungen.st_studstamm_nr - costage_bw_bewerbungen.nr - costage_bw_bewerb_hzb.bw_bewrbng_nr - costage_bw_bewerb_hzb.land_sub_r_nr - costage_land_subregionen.nr</comment>
</column>
<column name="hzb_staat" type ="INTEGER" size ="10" default ="" notnull ="false" description="Staat der HZB (amtlich)" >
<sourcefield table="costage_st_laender" name="statistik_code" sourcesystem="co" />
<comment>Lookup via: st_studstamm_nr - costage_bw_bewerbungen.st_studstamm_nr - costage_bw_bewerbungen.nr - costage_bw_bewerb_hzb.bw_bewrbng_nr - costage_bw_bewerb_hzb.st_land_nr - costage_st_laender.land_nr</comment>
</column>
<column name="abm_art_p" type ="CHAR" size ="10" default ="" notnull ="false" description="Art Abmeldung (personbezogen)" >
<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='P'</comment>
@ -589,6 +569,12 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -589,6 +569,12 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="summe" type ="INTEGER" size ="2" default ="" notnull ="false" description="Summe" />
<column name="kz_rueck_beur_ein_tsg" type ="SMALLINT" size ="2" default ="" notnull ="false" description="Rückmeldestatus (amtlich) TSG" />
<column name="hzb_land_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="HZB-Staat"/>
<column name="hzb_land_sub_r_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="HZB-Ort"/>
<column name="hzb_art_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="HZB-Art"/>
<column name="hzb_jahr" type ="INTEGER" size ="4" default ="" notnull ="false" description="HZB-Jahr"/>
<column name="hzb_datum" type ="DATE" size ="7" default ="" notnull ="false" description="HZB Datum "/>
<column name="hzb_note" type ="DECIMAL" size ="(14,7)" default ="" notnull ="false" description="HZB-Note"/>
</columns>
<indexes>
@ -1388,11 +1374,12 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -1388,11 +1374,12 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</rs></privileges>
</table>
<table name="costage_k_hzbart" thema="Studierende und Gebühren" caption="HZB-Arten (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<columns><column name="apnr" type ="char" size ="10" default ="" notnull ="true" />
<column name="kurztext" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="drucktext" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="langtext" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<table name="costage_bw_hzb_arten" thema="Studierende und Gebühren" caption="HZB-Arten (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<columns><column name="hzb_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="name" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="name_kurz" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="hzb_art_stla_code" type ="CHAR" size ="10" default ="" notnull ="true" />
<column name="kurzbezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="false" />
</columns>
<indexes></indexes>
<primaryKeys><rs>
@ -1674,15 +1661,15 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -1674,15 +1661,15 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
<relation from="costage_land_subregionen" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="land_sub_reg_nr" to="hzb_ort" />
<relation-column from="land_sub_reg_nr" to="hzb_land_sub_r_nr" />
</relation>
<relation from="costage_st_laender" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="st_land_nr" to="hzb_staat" />
<relation-column from="st_land_nr" to="hzb_land_nr" />
</relation>
<relation from="costage_k_hzbart" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="drucktext" format="%s">
<relation-column from="apnr" to="hzb_art" />
<relation from="costage_bw_hzb_arten" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name_kurz" format="%s">
<relation-column from="hzb_nr" to="hzb_art_nr" />
</relation>
<relation from="costage_st_abmeldungsarten" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
@ -1870,7 +1857,7 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -1870,7 +1857,7 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_bw_sb_stat_vorl_zuordnung"><file path="$COSTAGE_LOAD_PFAD/unl/costage_bw_sb_stat_vorl_zuordnung.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_bw_zulassungsarten"><file path="$COSTAGE_LOAD_PFAD/unl/costage_bw_zulassungsarten.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_land_subregionen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_land_subregionen.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_k_hzbart"><file path="$COSTAGE_LOAD_PFAD/unl/costage_k_hzbart.unl"/></loadtable>
<loadtable refresh="true" delimiter="^" header="false" tabname="costage_bw_hzb_arten"><file path="$COSTAGE_LOAD_PFAD/unl/costage_bw_hzb_arten.unl"/></loadtable>
<!--<loadtable refresh="true" delimiter="^" header="false" tabname="costage_abgeltungen"><file path="$COSTAGE_LOAD_PFAD/unl/costage_abgeltungen.unl"/></loadtable>
-->

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

@ -41,6 +41,7 @@ null::char(10) as hrst, @@ -41,6 +41,7 @@ null::char(10) as hrst,
null::integer as fachsemester,
null::integer as hssem,
(case when SG.studiengangs_typ_kb in ('TSG') then SA.studienstatustyp else null::char(10) end) as statustyp_tsg,
(case when ST.hauptstudium_flag='J' then 1::smallint else 0::smallint end) as primaerflag_studien,
0::smallint as tsg_generated,
--0::smallint as primaerflag,
null::integer as studiengang_nr,
@ -51,7 +52,12 @@ null::date as ruebeudat, @@ -51,7 +52,12 @@ null::date as ruebeudat,
null::date as endedat,
null::smallint as kz_rueck_beur_ein,
null::smallint as kz_rueck_beur_ein_tsg,
null::char(10) as hzb_art,
null::integer as hzb_art_nr,
null::integer as hzb_land_nr,
null::integer as hzb_land_sub_r_nr ,
null::integer as hzb_jahr,
null::date as hzb_datum ,
null::decimal(14,7) as hzb_note,
rank () over (partition by SM.st_sem_nr, S.st_studstamm_nr, SG.studiengangs_identifikator order by SA.gueltig_ab desc) as status_historie
into temp tmp_studien
FROM costage_st_studierendenstammdaten S,
@ -97,37 +103,58 @@ and F.fachsemestertyp='FS' @@ -97,37 +103,58 @@ and F.fachsemestertyp='FS'
update tmp_studien
set hzb_art=H.hzb_art_stla_code
from costage_bw_bewerb_hzb H, costage_bw_bewerbungen BW
where tmp_studien.st_studstamm_nr = BW.st_studstamm_nr
and BW.nr=H.bw_bewrbng_nr
set hzb_art_nr=H.hzb_art_nr,
hzb_datum=H.hzb_datum,
hzb_note=(case when substring(H.hzb_note from 1 for 1) ~ '[0-9]'
and substring(H.hzb_note from 2 for 1) in (',','.')
and substring(H.hzb_note from 3 for 1) ~ '[0-9]'
and (substring(H.hzb_note from 4 for 1) ~ '[0-9]' or substring(H.hzb_note from 4 for 1)='')
and length(H.hzb_note)<=4 then to_number(replace(H.hzb_note,',','.'),'9.99') else null::decimal(8,4) end ),
hzb_land_sub_r_nr=H.hzb_land_sub_r_nr,
hzb_land_nr=H.hzb_land_nr,
hzb_jahr=H.hzb_jahr
from costage_st_hzb H
where tmp_studien.st_studstamm_nr = H.st_person_nr
;
create index tmp_ix1 on tmp_studien(st_studiengang_nr);
create index tmp_ix2 on tmp_studien(st_studstamm_nr);
create index tmp_ix3 on tmp_studien(studiengangs_typ_kb);
create index tmp_ix4 on tmp_studien(st_sem_nr);
create index tmp_ix5 on tmp_studien(status_historie);
select T.*,1::smallint as primaerflag
--Primärflag ermitteln:
--1. Prio: aus px_st_studien_v:
select T.*,1::integer as primaerflag
into temp tmp_studien2
from tmp_studien T
where T.status_historie=1
and T.studiengangs_typ_kb in ('ESG','TSG')
and T.primaerflag_studien=1
;
--2. Prio: aus costage_st_hauptstudien:
insert into tmp_studien2
select T.*,1::integer as primaerflag
from tmp_studien T, costage_st_hauptstudien H
where H.st_studstamm_nr=T.st_studstamm_nr
and H.st_studium_nr=T.st_studium_nr
and H.st_sem_nr=T.st_sem_nr
and status_historie=1
and T.studiengangs_typ_kb in ('ESG','TSG')
and T.primaerflag_studien=0
;
--Studiengänge ohne Primärflag:
insert into tmp_studien2
select T.*,0::smallint as primaerflag
from tmp_studien T left outer join costage_st_hauptstudien H
on (H.st_studstamm_nr=T.st_studstamm_nr
insert into tmp_studien2
select T.*,0::integer as primaerflag
from tmp_studien T left outer join costage_st_hauptstudien H
on (H.st_studstamm_nr=T.st_studstamm_nr
and H.st_studium_nr=T.st_studium_nr
and H.st_sem_nr=T.st_sem_nr)
where T.status_historie=1
and T.studiengangs_typ_kb in ('ESG','TSG')
and T.primaerflag_studien=0
and H.st_studstamm_nr is null
;
@ -285,7 +312,11 @@ hssem, @@ -285,7 +312,11 @@ hssem,
statustyp_tsg,
tsg_generated,
primaerflag,
hzb_art,
hzb_art_nr,
hzb_land_sub_r_nr ,
hzb_jahr,
hzb_datum ,
hzb_note,
fachsemester)
select M.semester,
@ -317,7 +348,11 @@ S.hssem, @@ -317,7 +348,11 @@ S.hssem,
null::char(10) as statustyp_tsg,
1 as tsg_generated,
0 as primaerflag, --geschlossene TSG können kein Primärflag haben
S.hzb_art,
S.hzb_art_nr,
S.hzb_land_sub_r_nr ,
S.hzb_jahr,
S.hzb_datum ,
S.hzb_note,
max(S.fachsemester)
from tmp_studien_msg_tsg_fehlend M, tmp_studien3 S --,costage_st_semester E
where M.st_studiengang_nr_msg=S.st_studiengang_nr_msg_possible
@ -329,7 +364,7 @@ and M.semester != S.semester @@ -329,7 +364,7 @@ and M.semester != S.semester
--and S.st_studiengang_nr_msg=34454
--and S.studiengangs_bezeichnung='Bildungswissenschaften'
--and M.semester=20211
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
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
;
--statustyp und hrst nachladen:
@ -434,7 +469,7 @@ into temp tmp_studien3 @@ -434,7 +469,7 @@ into temp tmp_studien3
from tmp_studien2 T left outer join costage_st_studien_spoversionen SPO
on (SPO.st_studium_nr=T.st_studium_nr
and SPO.gueltig_ab < T.semester_ende)
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,37,38,39,40,41,42
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,37,38,39,40,41,42,43,44,45,46,47,48
;
update tmp_studien3 set po_stp_stp_version_kb= SPO.po_stp_stp_version_kb
@ -481,7 +516,12 @@ st_studium_nr, @@ -481,7 +516,12 @@ st_studium_nr,
stufrm,
kz_rueck_beur_ein,
kz_rueck_beur_ein_tsg,
hzb_art,
hzb_land_nr,
hzb_land_sub_r_nr,
hzb_art_nr,
hzb_jahr,
hzb_datum,
hzb_note,
po_stp_stp_version_kb,
summe
)
@ -521,7 +561,12 @@ select st_studium_nr, @@ -521,7 +561,12 @@ select st_studium_nr,
studienform_statistik_code as stufrm,
kz_rueck_beur_ein,
kz_rueck_beur_ein_tsg,
hzb_art,
hzb_land_nr,
hzb_land_sub_r_nr,
hzb_art_nr,
hzb_jahr,
hzb_datum,
hzb_note,
po_stp_stp_version_kb,
1 as summe
from tmp_studien3
@ -554,7 +599,12 @@ st_studium_nr, @@ -554,7 +599,12 @@ st_studium_nr,
stufrm,
kz_rueck_beur_ein,
kz_rueck_beur_ein_tsg,
hzb_art,
hzb_land_nr,
hzb_land_sub_r_nr,
hzb_art_nr,
hzb_jahr,
hzb_datum,
hzb_note,
po_stp_stp_version_kb,
summe
)
@ -595,7 +645,12 @@ cast (NULL as int) as studiengang_nr2, @@ -595,7 +645,12 @@ cast (NULL as int) as studiengang_nr2,
studienform_statistik_code as stufrm,
kz_rueck_beur_ein,
kz_rueck_beur_ein_tsg,
hzb_art,
hzb_land_nr,
hzb_land_sub_r_nr,
hzb_art_nr,
hzb_jahr,
hzb_datum,
hzb_note,
po_stp_stp_version_kb,
1 as summe
from tmp_studien3
@ -605,16 +660,6 @@ cast (NULL as int) as studiengang_nr2, @@ -605,16 +660,6 @@ cast (NULL as int) as studiengang_nr2,
;
--HZB Data:
update costage_st_studien_aggr set hzb_art=H.hzb_art_stla_code,
hzb_datum=H.zeugnisdatum,
hzb_note=H.hzb_note,
hzb_ort=H.land_sub_r_nr,
hzb_staat=H.land_nr
from costage_bw_bewerb_hzb H, costage_bw_bewerbungen BW
where BW.nr=H.bw_bewrbng_nr
and costage_st_studien_aggr.st_studstamm_nr=BW.st_studstamm_nr
and costage_st_studien_aggr.semester >= ${beginn_semester}
;
--Abmeldungsart:
--zuerst personbezogen:

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

@ -206,7 +206,7 @@ SELECT st_studium_nr, @@ -206,7 +206,7 @@ SELECT st_studium_nr,
st_studiengang_nr,
studienform_name,
studienform_statistik_code,
hauptstudien_flag
hauptstudium_flag
FROM px_st_studien_v
@ -364,7 +364,7 @@ FROM px_st_studierendenstammdaten_v @@ -364,7 +364,7 @@ FROM px_st_studierendenstammdaten_v
<unload-job id="px_st_hzb_v" target-table="costage_st_hzb" extraction-script="" transfer-unload-file="unl/costage_st_hzb.unl" >
<comment> </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
<![CDATA[ select
nr,
hzb_land_nr,
hzb_land_sub_r_nr,
@ -764,16 +764,16 @@ FROM px_leistungen_status_typen_v @@ -764,16 +764,16 @@ FROM px_leistungen_status_typen_v
]]>
</extraction-sql>
</unload-job>
<unload-job id="k_hzbart" target-table="costage_k_hzbart" extraction-script="" transfer-unload-file="unl/costage_k_hzbart.unl" >
<comment>HZB-Arten (amtlich), mit Mit R224 SP10 verfügbar </comment>
<unload-job id="px_bw_hzb_arten_v" target-table="costage_bw_hzb_arten" extraction-script="" transfer-unload-file="unl/costage_bw_hzb_arten.unl" >
<comment>HZB-Arten (intern und amtlich), mit Mit R224 SP10 verfügbar </comment>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
SELECT distinct hzb_art_stla_code as apnr,
name_kurz as kurztext,
name as drucktext,
name as langtext
SELECT hzb_nr,
substr(name,1,255),
substr(name_kurz,1,255),
hzb_art_stla_code,
kurzbezeichnung
FROM px_bw_hzb_arten_v
where hzb_art_stla_code is not null
;

2
src-modules/module/costage/rohdaten/csv_unloads2unl.sql

@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
{"srcfile":"px_leistungen_typen_v.csv", "targettable":"costage_leistungen_typen", "targetfile":"costage_leistungen_typen.unl"},
{"srcfile":"px_antritte_v.csv", "targettable":"costage_antritte", "targetfile":"costage_antritte.unl"},
{"srcfile":"px_leistungen_status_typen_v.csv", "targettable":"costage_leistungen_status_typen", "targetfile":"costage_leistungen_status_typen.unl"},
{"srcfile":"k_hzbart.csv", "targettable":"costage_k_hzbart", "targetfile":"costage_k_hzbart.unl"}
{"srcfile":"px_bw_hzb_arten_v.csv", "targettable":"costage_bw_hzb_arten", "targetfile":"costage_bw_hzb_arten.unl"}
] />
\! echo "Folgende Dateien lassen sich laden:"

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

@ -158,9 +158,24 @@ and semester_max >= $start_stud_sem @@ -158,9 +158,24 @@ and semester_max >= $start_stud_sem
<![CDATA[
select * from xdummy where 1=0
;
SELECT distinct matrikelnummer,
A.hzb_art_stla_code as hzbart,
H.hzb_jahr,
L.statistik_code as hzbkfzkz,
(select R.statistik_code from costage_land_subregionen R where R.land_sub_reg_nr = H.hzb_land_sub_r_nr) as hzbkfz,
H.hzb_datum as hzbdatum,
substring(replace(replace(H.hzb_note,',',''),'.','') from 1 for 10) as hzbnote,
null::char(1) as ersthzbart,
null::char(1) as ersthzbjahr,
null::char(1) as ersthzbkfzkz,
null::char(1) as ersthzbkfz,
null::char(1) as ersthzbdatum,
null::char(1) as ersthzbnote
from costage_bw_hzb_arten A, costage_st_studierendenstammdaten S,costage_st_hzb H
left outer join costage_st_laender L
on (L.st_land_nr=H.hzb_land_nr)
where A.hzb_nr=H.hzb_art_nr
and S.st_studstamm_nr=H.st_person_nr
]]>
</extraction-sql>

24
src-modules/module/costage/rohdaten_zul/zul_costage_unload.xml

@ -454,30 +454,6 @@ null as parent_lid @@ -454,30 +454,6 @@ null as parent_lid
FROM costage_st_abschlussziele_lokal L left outer join costage_st_abschlussziele_amtstat F
on (F.st_absz_amtstat_nr=L.st_absz_amtstat_nr)
WHERE L.code is not null
union
SELECT
30,
-1,
apnr,
kurz,
druck,
lang_1,
astat,
null as parent,
apnr, --sortc1 wird später uniquename
null::integer as sortorder,
null as bund_apnr,
null as sprache,
null::date gueltig_von,
null::date gueltig_bis,
apnr , --sourcesystem_id
' ', --hiskey_id
struktur_c as fb,
null as lid,
null as parent_lid
FROM cifx where key=30
union
SELECT distinct
612,

Loading…
Cancel
Save