<!--<bm:data-filter name="query" expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in ('CONTRACT_INCEPT_WFL', 'DCFL_CSH_PAYMENT_REQ')) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in ('DCFL_CSH_PAYMENT_REQ', 'DEPOSIT_RETURN')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in ('PROJECT_WFL')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in ('CON_ET_WFL','TENANT_CHANGE_WFL','CON_BUYBACK_WFL','DEPOSIT_RETURN')) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1))"/>-->
<!--<bm:data-filter name="query" expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in ('CONTRACT_INCEPT_WFL', 'DCFL_CSH_PAYMENT_REQ')) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in ('DCFL_CSH_PAYMENT_REQ', 'DEPOSIT_RETURN')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in ('PROJECT_WFL')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in ('CON_ET_WFL','TENANT_CHANGE_WFL','CON_BUYBACK_WFL','DEPOSIT_RETURN')) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1))"/>-->
<!--凭证导出工作流只能由提交人和审批人看到,其余人无法在工作流监控中看到-->
<!--凭证导出工作流只能由提交人和审批人看到,其余人无法在工作流监控中看到-->
<bm:data-filtername="query"expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in ('CONTRACT_INCEPT_WFL', 'DCFL_CSH_PAYMENT_REQ')) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in ('DCFL_CSH_PAYMENT_REQ', 'DEPOSIT_RETURN')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in ('PROJECT_WFL')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in ('CON_ET_WFL','TENANT_CHANGE_WFL','CON_BUYBACK_WFL','DEPOSIT_RETURN')) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1)
<bm:data-filtername="query"expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in ('CONTRACT_INCEPT_WFL', 'DCFL_CSH_PAYMENT_REQ')) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in ('DCFL_CSH_PAYMENT_REQ', 'DEPOSIT_RETURN')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in ('PROJECT_WFL')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in ('CON_ET_WFL','TENANT_CHANGE_WFL','CON_BUYBACK_WFL','DEPOSIT_RETURN')) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1)
or( ((t1.SUBMITTED_BY = ${/session/@user_id}) or ( (Select t.user_name From sys_user t Where t.user_id = ${/session/@user_id})
or( ((t1.SUBMITTED_BY = ${/session/@user_id}) or (
in (Select u.user_name
(${/session/@user_id}
From zj_wfl_instance_node_recipient t, sys_user u
in (Select t.user_id
From zj_wfl_instance_node_recipient t
Where t.instance_id = t1.instance_id
Where t.instance_id = t1.instance_id
And t.user_id = u.user_id
And t.record_type = 'APPROVER')
And t.record_type = 'APPROVER')
and t1.instance_status in (-1000,-1,10))
or
(${/session/@user_id}
in (Select t.user_id
From zj_wfl_instance_node_rcpt_ht t
Where t.instance_id = t1.instance_id
And t.record_type = 'APPROVER')
and t1.instance_status in (-1000,-1,10))
) ) and t1.workflow_code in('HLS_JOURNAL_WFL','HLS_JOURNAL_REVERSE_WFL')))"/>
) ) and t1.workflow_code in('HLS_JOURNAL_WFL','HLS_JOURNAL_REVERSE_WFL')))"/>