<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gzk
    $Date: 2022年12月8日 17:13:08
    $Revision: 1.0
    $Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
 select et.employee_type_code, ev.unit_id
   from exp_employees          ee,
        exp_employee_types     et,
        sys_user               su,
        exp_employee_assigns_v ev
  where ee.employee_id = su.employee_id
    and ee.employee_type_id = et.employee_type_id
    and ee.employee_id = ev.employee_id
   and su.user_id = ${/session/@user_id}


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