PZEE#88127 Notificatie alleen voor meldingen uit meldinggroep Veiligheid (en op juiste behandelteam)

svn path=/Customer/trunk/; revision=69800
This commit is contained in:
Suzan Wiegerinck
2025-07-16 12:48:50 +00:00
parent 2648707f8e
commit 869a9d0f7c

View File

@@ -1945,6 +1945,7 @@ AS
ba.prs_bedrijfadres_key
FROM mld_discipline bt,
mld_melding m,
mld_stdmelding sm,
mld_statuses s,
fac_tracking t,
fac_srtnotificatie sn,
@@ -1952,6 +1953,8 @@ AS
prs_bedrijfadres ba
WHERE bt.ins_discipline_key = m.mld_ins_discipline_key
AND s.mld_statuses_key = m.mld_melding_status
AND sm.mld_stdmelding_key = m.mld_stdmelding_key
AND sm.sm.mld_stdmeldinggroep_key = 13 -- meldinggroep Veiligheid
AND m.mld_ins_discipline_key IN (261, 702) -- melding staat op behandelteam Security of Security datalek
AND t.fac_tracking_refkey = m.mld_melding_key
AND t.fac_srtnotificatie_key = 47 -- MLDAFM melding is afgemeld