<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-5-13 下午2:55:50  
    $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 p.project_id,
       p.virtual_con_number, --合同编号
       pv.signing_place,--签约地点
       to_char(pv.signing_date,'yyyy')||'年'||to_char(pv.signing_date,'mm')||'月'||to_char(pv.signing_date,'dd') signing_date,--签约日期       
       bp.bp_name,--承租人姓名
       bp.legal_person,--法人代表
       hp.address,--住所
       hp.zipcode,--邮编
       hpl.phone,--电话
       hpl.fax--传真
 from PRJ_PROJECT_V p,PRJ_PROJECT_VIRTUAL_CON_LV PV,hls_bp_master bp,hls_bp_master_address_lv hp,hls_bp_master_contact_info_lv hpl
 where p.project_id=pv.project_id
 and p.bp_id=bp.bp_id
 and bp.bp_category='TENANT'
 and bp.bp_type='TENANT'
 and hp.bp_id=bp.bp_id
 and hp.address_type='COMPANY_ADDRESS'
 and hp.bp_id=hpl.bp_id
 and hpl.position='LP'
 and p.project_id=${/parameter/@project_id}
 ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
