<?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 cd.*,rownum rn,contract_number||' '||bp_name contract_num
  					from csh_payment_excel_lv cd
 					where cd.payment_req_id in
       				(select t.payment_req_id
          			from csh_payment_export_tmp t
         			where t.session_id = ${/session/@session_id})
         			order by cd.payment_req_id desc]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <!--     <bm:fields>
        <bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID"/>
        <bm:field name="project_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_STATUS"/>
        <bm:field name="project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NUMBER"/>
        <bm:field name="invoice_agent_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_AGENT_ID"/>
        <bm:field name="invoice_agent_id_n" datatype="java.lang.String"/>
        <bm:field name="bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME"/>
        <bm:field name="id_card_no" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ID_CARD_NO"/>
        <bm:field name="bp_class" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CLASS"/>
        <bm:field name="bp_class_n" datatype="java.lang.String"/>
        <bm:field name="down_payment_ratio" databaseType="NUMBER" datatype="java.lang.Long" physicalName="DOWN_PAYMENT_RATIO"/>
        <bm:field name="create_date" databaseType="DATE" datatype="java.lang.String" physicalName="CREATE_DATE"/>
        <bm:field name="export_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPORT_FLAG"/>
    </bm:fields> -->
</bm:model>