<?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 '%' || ${@contract_number} || '%'"/> <bm:query-field name="project_number" queryExpression="t1.project_number like '%' || ${@project_number} || '%'"/> <bm:query-field name="bp_name" queryExpression="t1.bp_name like '%' || ${@bp_name} || '%'"/> <bm:query-field name="bp_phone" queryExpression="t1.bp_phone like '%' || ${@bp_phone} || '%'"/> <bm:query-field name="license_number" queryExpression="t1.license_number like '%' || ${@license_number} || '%'"/> <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 '%' || ${@province} || '%'"/> <bm:query-field name="creation_date_from" queryExpression="t1.created_date >= to_date(${@creation_date_from},'yyyy-mm-dd')"/> <bm:query-field name="creation_date_to" queryExpression="t1.created_date <= to_date(${@creation_date_to},'yyyy-mm-dd')"/> <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 '%' || ${@id_card_no} || '%'"/> <bm:query-field name="item_frame_number" queryExpression="t1.item_frame_number like '%' || ${@item_frame_number} || '%'"/> <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 = '0041')"/> --><![CDATA[ ]]></bm:data-filters> </bm:model>