<?xml version="1.0" encoding="UTF-8"?> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:fields> <bm:field name="id" databaseType="NUMBER" datatype="java.lang.Long"/> <bm:field name="code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="200" forDisplay="true" forQuery="true" prompt="员工代码"/> <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="200" forDisplay="true" forQuery="true" prompt="员工描述"/> </bm:fields> <bm:operations> <bm:operation name="query"> <bm:query-sql><![CDATA[ select v.employee_id as id, v.employee_code as code, v.name as description from zj_wfl_employee_vl v #WHERE_CLAUSE# order by v.employee_id ]]></bm:query-sql> </bm:operation> </bm:operations> <bm:query-fields> <bm:query-field name="code" queryExpression="v.employee_code like '%'||${@code}||'%'"/> <bm:query-field name="description" queryExpression="v.name like '%'||${@description}||'%'"/> </bm:query-fields> </bm:model>