<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: trd
    $Date: 2023-2-7 下午2:36:27
    $Revision: 1.0
    $Purpose:
-->
<ns1:model xmlns:ns1="http://www.leaf-framework.org/schema/bm" alias="t1" defaultOrderBy="workflow_id desc" extend="zjwfl.zj_wfl_workflow">
    <ns1:fields>
        <ns1:field name="workflow_id" databaseType="NUMBER" datatype="java.lang.Long"/>
        <ns1:field name="workflow_code" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" prompt="流程代码"/>
        <ns1:field name="workflow_desc" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" prompt="流程描述"/>
        <ns1:field name="workflow_type_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="WORKFLOW_TYPE_ID"/>
        <ns1:field name="sub_category"/>
        <ns1:field name="enabled_flag"/>
    </ns1:fields>
    <ns1:query-fields>
        <ns1:query-field field="workflow_code" queryOperator="like"/>
        <ns1:query-field field="workflow_desc" queryOperator="like"/>
        <ns1:query-field field="sub_category" queryExpression="t1.sub_category = ${/parameter/@sub_category}"/>
        <ns1:query-field field="workflow_type_id" queryExpression="t1.workflow_type_id = ${/parameter/@workflow_type_id}"/>
    </ns1:query-fields>
    <ns1:data-filters>
        <ns1:data-filter enforceOperations="query" expression="t1.enabled_flag = &apos;Y&apos;"/>
    </ns1:data-filters>
</ns1:model>
