<?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.manufacturer,     --生产厂商
			       hvcm.mortgage_value, --总价值(万元)
			       hvcm.using_place,    --使用地
			       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>
