<?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.house_owner, --房屋所有权人
			       hvcm.estate_license_code, --房屋所有权证号
			       hvcm.housing_area, --建筑面积(㎡)
			       hvcm.building_structure, --建筑结构
			       hvcm.house_location,     --房屋坐落
			       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>
