<?xml version="1.0" encoding="UTF-8"?>

<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                select h.bp_name, h.bp_code, h.bp_id,nvl(h.is_constru_unit,'N') as is_constru_unit
                from exp_emp_assign_e_v ee, hls_bp_master h
                where ee.user_id = ${/session/@user_id}
                and ee.unit_id = h.unit_id
                and h.bp_category = 'AGENT'
                ]]>
            </bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
