<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-5-10 上午4:12:49  
    $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,
        p.project_id,
        p.control_mw,--可控装机容量(mw)
        p.equity_mw,--权益装机容量(mw)
        p.equipment_use_hour,--	设备利用小时数(hr)
        p.total_kwh,--发电量(亿千瓦时)
        p.power_use_rate,--	综合厂用电率(%)
        p.online_kwh,--上网电量(亿千瓦时)
        p.online_power_price,--含税上网电价(元/度)
        trim(to_char(p.total_power_income,'999,999,999,990.99')) total_power_income--电费收入(万元)
  from  
PRJ_RELATE_PROJECT_FINANCE_LV p ,prj_project_bp pbp
where p.project_id=pbp.project_id 
and pbp.bp_category='TENANT'
AND PBP.BP_TYPE='TENANT'
and p.project_id=${/parameter/@project_id}
]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
