<?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
                    cc.contract_id,
                    ccc.times,
                    cc.contract_number,
                    cc.contract_name
                FROM
                    con_contract cc,
                    con_contract_cashflow ccc
                WHERE
                    cc.data_class  = 'NORMAL' AND
                    cc.contract_id = ccc.contract_id AND
                    ccc.cf_item    = 1
                    ) t1 #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
