<?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 cfr.bp_code,max(cfr.max_overdue_days)max_overdue_days from con_contract_ifrs9 cfr where cfr.period_day=${@period_name} and cfr.max_overdue_days>0 group by cfr.bp_code)v
                #WHERE_CLAUSE#
                ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>