<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: SYJ 
    $Date: 2016年3月8日15:16:50
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    decode(count(*),0,'N','Y') to_do_flag
                FROM
                    zj_wfl_instance_node_rcpt_v t1 #WHERE_CLAUSE#
                
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="(t1.user_id =(SELECT U.USER_ID FROM SYS_USER U WHERE U.USER_NAME = ${@user_id}) and t1.instance_id = ${@instance_id} and t1.node_id = ${@node_id})"/>
        <bm:data-filter enforceOperations="query" expression="t1.wx_flag=&apos;Y&apos;"/>
    </bm:data-filters>
</bm:model>
