Compare commits

...

2 Commits

  1. 7
      src-modules/module/qa/datentabellen/qa_mask_execution_assert_result_code_setzen.sql
  2. 6
      src-modules/module/qa/hilfstabellen/qa_sos_stg_aggr_int_fuellen.sql

7
src-modules/module/qa/datentabellen/qa_mask_execution_assert_result_code_setzen.sql

@ -166,7 +166,8 @@ from qa_mask_execution2project TP, qa_project P
where TP.mask_execution_id=tmp_testcase.mask_execution_id where TP.mask_execution_id=tmp_testcase.mask_execution_id
and P.tid=TP.project_id and P.tid=TP.project_id
; ;
--nun DB-Tests: --nun DB-Tests, wenn keine Maske ausgewählt ist:
<#if "<<Maske>>" =="">
<@selectintotmp <@selectintotmp
select=" select="
T.tid, T.tid,
@ -232,6 +233,7 @@ update tmp_qa_dbtest set
insert into tmp_testcase(testcase_type, insert into tmp_testcase(testcase_type,
systeminfo_id, systeminfo_id,
projekt_str,
execution_name, execution_name,
uniquename, uniquename,
--maskeninfo_id_str, --maskeninfo_id_str,
@ -249,6 +251,7 @@ nextedit
) )
select 2::integer as testcase_type, --DB-Test select 2::integer as testcase_type, --DB-Test
systeminfo_id, systeminfo_id,
projekt_str,
name, name,
uniquename, uniquename,
case when ticket_link !='' then 'Ticket|' || ticket_link else '' end as ticket_link, case when ticket_link !='' then 'Ticket|' || ticket_link else '' end as ticket_link,
@ -269,7 +272,7 @@ from tmp_qa_dbtest
drop table tmp_qa_dbtest; drop table tmp_qa_dbtest;
</#if> --Ende wenn keine Maske ausgewählt ist
<#if inEtl> <#if inEtl>

6
src-modules/module/qa/hilfstabellen/qa_sos_stg_aggr_int_fuellen.sql

@ -49,7 +49,10 @@ S.stutyp,
S.stufrm, S.stufrm,
S.summe, S.summe,
S.matrikel_nr, S.matrikel_nr,
D.stg_astat as stg, --führende 0 entfernen:
(case when substring(D.stg_astat from 1 for 1)='0'
then substring(D.stg_astat from 2 for 3)
else D.stg_astat end) as stg,
D.abschluss_astat as abschluss, D.abschluss_astat as abschluss,
S.stichtag S.stichtag
FROM dim_studiengang D, sos_stg_aggr S left outer join sos_k_hrst H FROM dim_studiengang D, sos_stg_aggr S left outer join sos_k_hrst H
@ -61,3 +64,4 @@ and S.stichtag in (select I.tid from sos_stichtag I where appl_key in ('0','1'))
</#if> </#if>

Loading…
Cancel
Save