<?xml version="1.0" encoding="UTF-8"?><bm:modelxmlns:bm="http://www.leaf-framework.org/schema/bm"needAccessControl="false"><bm:operations><bm:operationname="query"><bm:query-sql><![CDATA[ select * from ( SELECT hbm.bp_id, hbm.bp_code, hbm.bp_name FROM hls_bp_master hbm WHERE hbm.bp_category = 'TENANT' AND hbm.bp_type = 'TENANT' AND hbm.enabled_flag = 'Y' ) t1 #WHERE_CLAUSE# ]]></bm:query-sql></bm:operation></bm:operations><bm:fields><bm:fieldname="bp_id"forDisplay="false"forQuery="false"prompt="ID"/><bm:fieldname="bp_code"forDisplay="true"forQuery="true"prompt="客户编号"/><bm:fieldname="bp_name"forDisplay="true"forQuery="true"prompt="客户名称"/></bm:fields><bm:query-fields><bm:query-fieldname="bp_code"queryExpression="t1.bp_code like '%'||${@bp_code}||'%'"/><bm:query-fieldname="bp_name"queryExpression="t1.bp_name like '%'||${@bp_name}||'%'"/></bm:query-fields><bm:data-filters><bm:data-filterexpression="( exists (select 1 from aut_trx_user_authorize a1,aut_owner_user_authorize a2 where a1.trx_category = 'BP' and a1.trx_id = t1.bp_id and trunc(sysdate) between a1.start_date and nvl(a1.end_date,trunc(sysdate)) and a1.user_id = a2.owner_user_id and a1.trx_category = a2.trx_category and a2.authorized_user_id = ${/session/@user_id} and trunc(sysdate) between a2.start_date and nvl(a2.end_date,trunc(sysdate))))"/></bm:data-filters></bm:model>