<?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
                    hacc.config_id,
                    hacc.function_code,
                    hacc.function_description,
                    hacc.document_category,
                    hacc.approval_method,
                    hacc.workflow_id,
                    zww.workflow_code,
                    zww.workflow_desc
                FROM
                    hn_atm_complement_config hacc,
                    zj_wfl_workflow zww
                WHERE
                    hacc.workflow_id  = zww.workflow_id(+) AND
                    hacc.enabled_flag = 'Y') t
                    #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="function_code" forDisplay="true" forQuery="true" prompt="功能操作"/>
        <bm:field name="function_description" forDisplay="true" forQuery="true" prompt="操作描述"/>
        <bm:field name="config_id"/>
        <bm:field name="document_category"/>
        <bm:field name="approval_method"/>
        <bm:field name="workflow_id"/>
        <bm:field name="workflow_code"/>
        <bm:field name="workflow_desc"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field name="function_code" queryExpression="t.function_code like &apos;%&apos;||${@function_code}||&apos;%&apos;"/>
        <bm:query-field name="function_description" queryExpression="t.function_description like &apos;%&apos;||${@function_description}||&apos;%&apos;"/>
    </bm:query-fields>
</bm:model>
