WTCA#44967 notijob voor klachten
svn path=/Customer/trunk/; revision=35655
This commit is contained in:
@@ -4926,6 +4926,61 @@ AS
|
||||
AND nj.fac_notificatie_job_view = 'WTCA_V_NOTI_EXTERN'
|
||||
AND t.fac_tracking_datum BETWEEN nj.fac_notificatie_job_nextrun - (nj.fac_notificatie_job_interval / 24) AND nj.fac_notificatie_job_nextrun;
|
||||
|
||||
-- notijob die Nieuwe klachten notificeert naar personen in Autorisatiegroep Klachtnotificaties
|
||||
-- 63 = Klachten, 30 = MLDNEW, 361 = Klachtnotificaties
|
||||
CREATE OR REPLACE VIEW wtca_v_noti_klachten
|
||||
(
|
||||
CODE,
|
||||
SENDER,
|
||||
RECEIVER,
|
||||
TEXT,
|
||||
KEY,
|
||||
XKEY,
|
||||
XEMAIL,
|
||||
XMOBILE
|
||||
)
|
||||
AS
|
||||
SELECT sn.fac_srtnotificatie_code,
|
||||
NULL,
|
||||
p.prs_perslid_key,
|
||||
'Nieuwe klacht '
|
||||
|| ins_srtdiscipline_prefix
|
||||
|| m.mld_melding_key
|
||||
|| ' geregistreerd door '
|
||||
|| pf.prs_perslid_naam_full,
|
||||
m.mld_melding_key,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
FROM mld_melding m,
|
||||
mld_stdmelding std,
|
||||
mld_discipline d,
|
||||
ins_srtdiscipline sd,
|
||||
fac_tracking ft,
|
||||
fac_notificatie_job nj,
|
||||
fac_srtnotificatie sn,
|
||||
fac_gebruikersgroep fg,
|
||||
prs_perslid p,
|
||||
prs_v_perslid_fullnames pf
|
||||
WHERE m.mld_stdmelding_key = std.mld_stdmelding_key
|
||||
AND std.mld_ins_discipline_key = d.ins_discipline_key
|
||||
AND d.ins_srtdiscipline_key = sd.ins_srtdiscipline_key
|
||||
AND sd.ins_srtdiscipline_key = 63
|
||||
AND ft.fac_tracking_refkey = m.mld_melding_key
|
||||
AND pf.prs_perslid_key = m.prs_perslid_key
|
||||
AND sn.fac_srtnotificatie_key = ft.fac_srtnotificatie_key
|
||||
AND sn.fac_srtnotificatie_key = 30
|
||||
AND fg.fac_groep_key = 361
|
||||
AND fg.prs_perslid_key = p.prs_perslid_key
|
||||
AND p.prs_perslid_verwijder IS NULL
|
||||
AND p.prs_perslid_oslogin IS NOT NULL
|
||||
AND p.prs_perslid_email IS NOT NULL
|
||||
AND UPPER (nj.fac_notificatie_job_view) = 'WTCA_V_NOTI_KLACHTEN'
|
||||
AND ft.fac_tracking_datum BETWEEN nj.fac_notificatie_job_nextrun
|
||||
- (nj.fac_notificatie_job_interval
|
||||
/ 24)
|
||||
AND nj.fac_notificatie_job_nextrun;
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
@@ -4936,4 +4991,4 @@ COMMIT;
|
||||
SET ECHO OFF
|
||||
SPOOL OFF
|
||||
SET DEFINE ON
|
||||
PROMPT Logfile of this upgrade is: &fcltlogfile
|
||||
PROMPT Logfile of this upgrade is: &fcltlogfile
|
||||
Reference in New Issue
Block a user