<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-5-8 下午7:10:05  
    $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,
       p.serial_number,--编号
       p.area,--区域
       p.project_type,--项目类型
       p.access_method,--上网方式
       p.equipped_capacitor,--装机容量(kwp)
       p.forecast_power_generation,--预测发电量(万度)
       trim(to_char(p.forecast_generating_revenue,'999,999,999,990.99')) forecast_generating_revenue,--预计发电收入(万元)
       p.description--备注     
 from prj_project_bp_management_lv p ,prj_project_bp pbp 
 where pbp.prj_bp_id=p.prj_bp_id
and pbp.bp_category='GUARANTOR'
--and PBP.BP_TYPE='GUARANTOR'
and pbp.project_id=${/parameter/@project_id}
]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
