<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-5-9 下午1:59:23  
    $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(p.prj_bp_id) prj_bp_id,
       hn_project_report_pkg.get_prj_bp_issue(p.prj_bp_id, 1, 4) l1,
       hn_project_report_pkg.get_prj_bp_issue(p.prj_bp_id, 5, 8) l2,
       hn_project_report_pkg.get_prj_bp_issue(p.prj_bp_id, 9, 12) l3,
       hn_project_report_pkg.get_prj_bp_issue(p.prj_bp_id, 13, 16) l4
  from prj_project_bp p
 where p.project_id = ${/parameter/@project_id}
   and p.bp_category = 'TENANT'
   and p.BP_TYPE = 'TENANT'
]]></bm:query-sql>
            <bm:parameters>
                <bm:parameter name="project_id"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
</bm:model>
