<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: jack  
    $Date: 2014-12-12 上午11:24:14  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    su.bp_id,
                    hbm.bp_name bp_id_n
                FROM
                    sys_user su,
                    hls_bp_master hbm
                WHERE
                    su.bp_category = 'AGENT' AND
                    su.user_id     = ${/session/@user_id} AND
                    su.bp_id       = hbm.bp_id
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
