<?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 con_collection_v t1 #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:query-fields>
        <bm:query-field name="contract_number" queryExpression="t1.contract_number like  &apos;%&apos; || ${@contract_number} || &apos;%&apos;"/>
        <bm:query-field name="project_number" queryExpression="t1.project_number like  &apos;%&apos; || ${@project_number} || &apos;%&apos;"/>
        <bm:query-field name="bp_name" queryExpression="t1.bp_name like  &apos;%&apos; || ${@bp_name} || &apos;%&apos;"/>
        <bm:query-field name="bp_phone" queryExpression="t1.bp_phone like  &apos;%&apos; || ${@bp_phone} || &apos;%&apos;"/>
        <bm:query-field name="license_number" queryExpression="t1.license_number like  &apos;%&apos; || ${@license_number} || &apos;%&apos;"/>
        <bm:query-field name="staff_id" queryExpression="t1.staff_id = ${@staff_id}"/>
        <bm:query-field name="overdue_status_type_n" queryExpression="t1.overdue_status_type_n = ${@overdue_status_type_n}"/>
        <bm:query-field name="province" queryExpression="t1.province like  &apos;%&apos; || ${@province} || &apos;%&apos;"/>
        <bm:query-field name="creation_date_from" queryExpression="t1.created_date &gt;= to_date(${@creation_date_from},&apos;yyyy-mm-dd&apos;)"/>
        <bm:query-field name="creation_date_to" queryExpression="t1.created_date &lt;= to_date(${@creation_date_to},&apos;yyyy-mm-dd&apos;)"/>
        <bm:query-field name="overdue_status_type" queryExpression="t1.overdue_status_type = ${@overdue_status_type}"/>
        <bm:query-field name="id_card_no" queryExpression="t1.id_card_no like  &apos;%&apos; || ${@id_card_no} || &apos;%&apos;"/>
        <bm:query-field name="item_frame_number" queryExpression="t1.item_frame_number like  &apos;%&apos; || ${@item_frame_number} || &apos;%&apos;"/>
        <bm:query-field name="assign_time" queryExpression="t1.assign_time =${@assign_time}"/>
        <bm:query-field name="staff_name" queryExpression="t1.staff_name = ${@staff_name}"/>
    </bm:query-fields>
    <bm:data-filters>
        <!-- <bm:data-filter name="query" expression="t1.user_id = ${/session/@user_id} or EXISTS (SELECT 1 FROM sys_user_role_groups_vl sy WHERE sy.user_id = ${/session/@user_id} AND sy.role_code = &apos;0041&apos;)"/> --><![CDATA[
        
        
    ]]></bm:data-filters>
</bm:model>