FIX_DELETION_EXPORT : RV
This commit is contained in:
parent
ebd7fe14ce
commit
f7d029c0f8
@ -886,7 +886,6 @@ class EmployeePolicyModel extends Model
|
|||||||
|
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
SELECT
|
SELECT
|
||||||
emp_code,
|
|
||||||
group_key,
|
group_key,
|
||||||
MAX(CASE WHEN field_name = 'emp_status' THEN new_value END) AS empstatus,
|
MAX(CASE WHEN field_name = 'emp_status' THEN new_value END) AS empstatus,
|
||||||
MAX(CASE WHEN field_name = 'change_event' THEN new_value END) AS changeevent,
|
MAX(CASE WHEN field_name = 'change_event' THEN new_value END) AS changeevent,
|
||||||
@ -902,7 +901,7 @@ class EmployeePolicyModel extends Model
|
|||||||
group_key
|
group_key
|
||||||
|
|
||||||
) AS deletiondata
|
) AS deletiondata
|
||||||
ON a.emp_code = deletiondata.emp_code AND a.status != 'truncated'
|
ON a.group_key = deletiondata.group_key AND a.status != 'truncated'
|
||||||
|
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
(
|
(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user