<?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
                    v.code_value AS mortgage_type,
                    v.code_value_name AS mortgage_type_n
                FROM
                    sys_code_values_v v
                WHERE
                    v.code                    = 'HLS209_MORTGAGE_TYPE' AND
                    v.code_enabled_flag       = 'Y' AND
                    v.code_value_enabled_flag = 'Y'
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="mortgage_type" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="true" forQuery="true" physicalName="MORTGAGE_TYPE" prompt="抵押类型代码"/>
        <bm:field name="mortgage_type_n" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="120" forDisplay="true" forQuery="true" physicalName="MORTGAGE_TYPE_N" prompt="抵押类型描述"/>
    </bm:fields>
</bm:model>
