<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">

    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
       select * from (select cc.times,
       to_char(cc.due_amount, 'FM999,999,999,990.00') as due_amount,
       to_char(cc.due_date, 'yyyy-mm-dd') as due_date
  from con_contract_cashflow cc
 where contract_id = ${/parameter/@contract_id}
 order by times asc) t

                #WHERE_CLAUSE#
                #ORDER_BY_CLAUSE#
                ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:query-fields>
        <!--        <bm:query-field name="contract_id" queryExpression="t.contract_id=${@contract_id}"/>-->
    </bm:query-fields>
</bm:model>
