<?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
                    su.user_id as id,
                    su.user_name as code ,
                    su.description
                FROM
                    sys_user su #WHERE_CLAUSE#
                ORDER BY
                    su.user_id
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:query-fields>
        <bm:query-field name="code" queryExpression="su.user_name like &apos;%&apos;||${@code}||&apos;%&apos;"/>
        <bm:query-field name="description"
                        queryExpression="su.description like &apos;%&apos;||${@description}||&apos;%&apos;"/>
    </bm:query-fields>
</bm:model>