<?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 CONTRACT_BENEFITS_SALE_V t
         #WHERE_CLAUSE#


                ]]>
            </bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:query-fields>
        <bm:query-field name="journal_date_from" queryExpression="to_char(t.journal_date,&apos;yyyy-mm-dd&apos;) &gt;= ${@journal_date_from}"/>
        <bm:query-field name="journal_date_to" queryExpression="to_char(t.journal_date,&apos;yyyy-mm-dd&apos;) &lt;= ${@journal_date_to}"/>
        <bm:query-field name="division" queryExpression="t.division in (${:@division})"/>
        <bm:query-field name="bp_id" queryExpression="t.bp_id_agent_level1 in (${:@bp_id})"/>
        <bm:query-field name="business_type" queryExpression="t.business_type=${@business_type}"/>
    </bm:query-fields>
</bm:model>
