<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    su.user_id
                FROM
                    sys_user su,
                    exp_employees ee
                WHERE
                    su.employee_id = ee.employee_id AND
                    TRUNC(sysdate) BETWEEN TRUNC(su.start_date) AND TRUNC(NVL(su.end_date, sysdate)) AND
                    ee.enabled_flag  ='Y' AND
                    ee.employee_code = ${@employee_code}
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
