<?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
                    t.create_date_fmt,
                    t.action_type_desc,
                    t.comment_text,
                    t.node_desc,
                    t.approver
                FROM
                    zj_wfl_approve_history_v t
                WHERE
                    t.instance_id = ${@instance_id}
                ORDER BY
                    t.record_id DESC
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="create_date_fmt" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CREATE_DATE_FMT"/>
        <bm:field name="action_type_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ACTION_TYPE_DESC"/>
        <bm:field name="comment_text" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMMENT_TEXT"/>
        <bm:field name="node_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NODE_DESC"/>
        <bm:field name="approver" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="APPROVER"/>
    </bm:fields>
</bm:model>
