<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-5-9 下午3:20:45  
    $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 pbp.project_id,
            to_char(pbp.prj_bp_id) prj_bp_id,
       bt.type_of_guarantee,--担保类型
       bt.counts,--笔数
       trim(to_char(bt.guaranteed_amount,'999,999,999,990.99')) guaranteed_amount,--担保金额
       bt.description_of_amount--金额说明
 from  prj_project_bp_guarantee_lv bt, prj_project_bp pbp
 where pbp.prj_bp_id = bt.prj_bp_id
   and pbp.bp_category = 'TENANT'
   and PBP.BP_TYPE = 'TENANT_SEC'
   and pbp.project_id=${/parameter/@project_id}
   ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
