<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-5-8 下午5:18:03  
    $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
            to_char(pbp.prj_bp_id) prj_bp_id,
 bt.pro_tenant_invest_item, --投资内容
 bt.pro_tenant_invest_budget,--投资预算
 bt.pro_tenant_invest_progress,--目前投资进度
 bt.pro_tenant_invest_plan,--后期投资安排
 bt.pro_tenant_invest_source,--筹资来源
 bt.pro_tenant_invest_amount,--筹资金额
 bt.pro_tenant_invest_pace,--目前筹资进度
 bt.pro_tenant_invest_arrange--后期筹资安排
 from prj_project_bp pbp,
prj_bp_transactor bt
where  Pbp.bp_category='GUARANTOR'
--AND PBP.BP_TYPE='GUARANTOR' 
and pbp.prj_bp_id=bt.prj_bp_id
and bt.siv_flag='FINANCE'
and pbp.project_id=${/parameter/@project_id}
]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
