HSLE#80406 Rap/Bugfix behandelteam-tracking
svn path=/Customer/trunk/; revision=62191
This commit is contained in:
@@ -4669,7 +4669,23 @@ AS
|
||||
AND m.mld_melding_key = t.fac_tracking_refkey
|
||||
AND t.fac_srtnotificatie_key = 45 -- MLDUPD
|
||||
AND INSTR (t.fac_tracking_oms, 'Behandelteam:') > 0
|
||||
AND INSTR (SUBSTR (t.fac_tracking_oms, INSTR (t.fac_tracking_oms, 'Behandelteam:')), ' --> ') > 0)
|
||||
AND INSTR (SUBSTR (t.fac_tracking_oms, INSTR (t.fac_tracking_oms, 'Behandelteam:')), ' --> ') > 0
|
||||
UNION ALL
|
||||
SELECT m.mld_melding_key,
|
||||
sd.ins_srtdiscipline_prefix || TO_CHAR (m.mld_melding_key) meldingnummer,
|
||||
m.mld_melding_status,
|
||||
t.fac_tracking_key,
|
||||
TRIM (SUBSTR (t.fac_tracking_oms, INSTR (t.fac_tracking_oms, 'Behandelteam is gewijzigd naar') + 30))
|
||||
bt,
|
||||
t.fac_tracking_datum op
|
||||
FROM mld_melding m, mld_stdmelding sm, mld_discipline md, ins_srtdiscipline sd, fac_tracking t
|
||||
WHERE m.mld_stdmelding_key = sm.mld_stdmelding_key
|
||||
AND sm.mld_ins_discipline_key = md.ins_discipline_key
|
||||
AND md.ins_discipline_key IN (2041, 2162, 2163) -- Applicatiebeheer/Infra (SN)/Infra (DT)
|
||||
AND md.ins_srtdiscipline_key = sd.ins_srtdiscipline_key
|
||||
AND m.mld_melding_key = t.fac_tracking_refkey
|
||||
AND t.fac_srtnotificatie_key = 363 -- MLDBHG
|
||||
AND INSTR (t.fac_tracking_oms, 'Behandelteam is gewijzigd naar') > 0)
|
||||
SELECT mld_melding_key,
|
||||
meldingnummer,
|
||||
mld_melding_status,
|
||||
|
||||
Reference in New Issue
Block a user