<?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 (select e.user_id,
						       e.user_name,
						       e.user_desc,
						       e.position_id
						  from exp_emp_user_e_v e
						 where e.position_id = ${/parameter/@position_id}) v
			#WHERE_CLAUSE# 			   
			order by user_id
			]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="user_id" databaseType="NUMBER" datatype="java.lang.Long" forDisplay="true" forQuery="true" physicalName="USER_ID" prompt="用户ID"/>
        <bm:field name="user_desc" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="USER_DESC" prompt="用户描述"/>
        <bm:field name="user_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="USER_NAME"/>
        <bm:field name="position_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="POSITION_ID"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="user_name" queryExpression="user_name like ${@user_name}"/>
    </bm:query-fields>
</bm:model>
