<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhuxianfei
    $Date: 2018-8-27 上午10:38:31
    $Revision: 1.0
    $Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    '1' type_desc,
                    'Agricultural Bank of China' bank_name_des,
                    --TO_CHAR(t1.due_date,'yyyymmdd') due_date,
                    TO_CHAR(sysdate,'yyyymmdd') due_date,
                    t1.row_count rowtotal,
                    t1.amount_total*100 as amount_total
                FROM
                    ds_abc_interface_hd t1 #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="type_desc"/>
        <bm:field name="bank_name_des"/>
        <bm:field name="due_date"/>
        <bm:field name="rowtotal"/>
        <bm:field name="amount_total"/>
    </bm:fields>
    <bm:data-filters>
        <bm:data-filter name="head_id" enforceOperations="query" expression="t1.head_id=${@head_id}"/>
    </bm:data-filters>
</bm:model>
