<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-5-9 上午10:44:57  
    $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.prj_bp_id,
       ss.stockholder_name,--股东名称
       trim(to_char(ss.capital_contribution,'999,999,999,990.99')) capital_contribution,--认缴出资额       
       trim(to_char(ss.pro_tenant_inner_actual,'999,999,999,990.99')) pro_tenant_inner_actual,--实缴出资额      
       ss.stockholding_ratio,--股权比例
       ss.industry,--所处行业
       ss.pro_tenant_inner_re--法定代表人
  from prj_project_bp pbp, prj_bp_stock_structure ss
 where pbp.prj_bp_id = ss.prj_bp_id
   and pbp.bp_category = 'TENANT'
   and PBP.BP_TYPE = 'TENANT'
   and pbp.project_id=${/parameter/@project_id}
   ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
