<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-5-9 下午4:14:40  
    $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,
       hp.province_id_n || hp.city_id_n ||
       hp.district_id_n || hp.address detailed_company_address--注册地址
 from prj_project_bp pbp , hls_bp_master_address_lv hp
  where hp.address_type = 'COMPANY_ADDRESS'--注册地址
 and pbp.bp_id=hp.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>
