<?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
                    COUNT(*) to_do_counter
                FROM
                    zj_wfl_instance_node_rcpt_v t
                WHERE
                    t.user_id = ${@user_id} and t.workflow_code in ('CSH_PAYMENT_WFL','WFL_PRJ_DEP2','WFL_PRJ_DEP1','PRJ_PREAPPLY_WFL')
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="to_do_counter" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TO_DO_COUNTER"/>
    </bm:fields>
</bm:model>
