Browse Source

Bugfix historical orgunits duplicates #319109

master
Daniel Quathamer 2 months ago
parent
commit
a8f9247a1c
  1. 4
      superx/WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/fm_templates.unl

4
superx/WEB-INF/conf/edustore/db/install/schluesseltabellen/release_unloads/fm_templates.unl

@ -598,12 +598,14 @@ and T.sourcesystem=${Quellsystem_var} \ @@ -598,12 +598,14 @@ and T.sourcesystem=${Quellsystem_var} \
update tmp_cifx2 set apnr=(select min(apnr) from cifx T\
where T.uniquename=tmp_cifx2.uniquename\
and T.key=tmp_cifx2.key\
and T.sourcesystem !=tmp_cifx2.sourcesystem\
and today() between T.d_akt_von and T.d_akt_bis\
)\
where apnr is null \
and 0 < (select count(*) from cifx T\
where T.uniquename=tmp_cifx2.uniquename\
and T.key=tmp_cifx2.key\
and T.sourcesystem !=tmp_cifx2.sourcesystem\
and today() between T.d_akt_von and T.d_akt_bis\
)\
;\
@ -1150,12 +1152,14 @@ and T.sourcesystem=${Quellsystem_var} \ @@ -1150,12 +1152,14 @@ and T.sourcesystem=${Quellsystem_var} \
update tmp_cifx2 set apnr=(select min(apnr) from cifx T\
where T.uniquename=tmp_cifx2.uniquename\
and T.key=tmp_cifx2.key\
and T.sourcesystem !=tmp_cifx2.sourcesystem\
and today() between T.d_akt_von and T.d_akt_bis\
)\
where apnr is null \
and 0 < (select count(*) from cifx T\
where T.uniquename=tmp_cifx2.uniquename\
and T.key=tmp_cifx2.key\
and T.sourcesystem !=tmp_cifx2.sourcesystem\
and today() between T.d_akt_von and T.d_akt_bis\
)\
;\

Loading…
Cancel
Save