<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
            select hvcm.land_use_right_owner, --土地使用权人
			       hvcm.land_certificate_code,--土地使用证号
			       hvcm.land_use_rights_type, --土地使用权类型
			       hvcm.land_area,            --土地面积(㎡)
			       hvcm.land_location,        --土地坐落
			       hvcm.land_building_type,   --建筑物类型
			       hvcm.land_building_location,--在建建筑坐落
			       hvcm.land_building_area,   --建筑面积(㎡)
			       hvcm.land_building_structure,--建筑结构
			       hvcm.land_building_floor,  --在建造层数
			       hvcm.land_building_floor_total,--总层数
			       hvcm.land_building_value,    --在建建筑物价值(万)
			       hvcm.mortgage_registed_dept, --登记机关
			       (hn_report_pkg.get_prj_filr_name(p_check_id   => hvcm.mortgage_id,
			                                        p_table_name => 'hn_virtual_con_mortgage')) file_name, --附件名
			       (hn_report_pkg.get_prj_attachment_id(p_check_id   => hvcm.mortgage_id,
			                                            p_table_name => 'hn_virtual_con_mortgage')) attachment_id,
			       hvcm.mortgage_id
			  from hn_virtual_con_mortgage hvcm
			 where hvcm.mortgage_id = ${@mortgage_id}
			 	]]></bm:query-sql>
            <bm:parameters>
                <bm:parameter name="mortgage_id"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
</bm:model>
