<?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 * from (
            select h.bp_code loan_con_bp_c, h.bp_name loan_con_bp_n
                   from hls_bp_master_lv h
                   where h.bp_category = 'FUNDS_SIDE'
            union
                   select tt.bp_code loan_con_bp_c, tt.bp_name loan_con_bp_n
                   from bgfl_hls_bp_master_all_role_v tt
                   where tt.bp_category in ('FUNDS_SIDE')
                ) tt
                    #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="loan_con_bp_c" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="LOAN_CON_BP_C" prompt="融资对象编码"/>
        <bm:field name="loan_con_bp_n" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="LOAN_CON_BP_N" prompt="融资对象名称"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="loan_con_bp_c" queryOperator="like"/>
        <bm:query-field field="loan_con_bp_n" queryOperator="like"/>
    </bm:query-fields>
</bm:model>
