<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
				select decode(count(1), 0, 'N', 'Y') as flag
                  from (select u.user_id id
                          from sys_user u
                         where u.user_id = ${/session/@user_id}
                           and (u.user_name in ('XUEJINGYAN','WUYING','LIUMENGCHEN') or exists
                                (select 1
                                from exp_employees e, exp_employee_assigns_v ea
                                where e.employee_id = ea.employee_id
                                and e.enabled_flag = 'Y'
                                and ea.position_enabled = 'Y'
                                and ea.position_code = '002'
                                and ea.enabled_flag = 'Y'
                                and e.employee_id = u.employee_id))

                )
	        ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
