<?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.company_name_stock,     --目标公司名称
			       hvcm.stock_registered_capital, --注册资本(万元)
			       hvcm.stock_ratio || '%' stock_ratio, --持股比例(%)
			       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>
