<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-5-30 下午1:53:03  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    hs.project_id,
                    rv.comment_text project_review_post,
                    su.user_id,
                    su.description user_desc2
                FROM
                    hn_prj_project_side hs,
                    zj_wfl_workflow_instance i,
                    sys_user su,
                    zj_wfl_approve_record rv,
                    zj_wfl_workflow_node_v nv
                WHERE
                    hs.wfl_instance_id = i.instance_id AND
                    i.instance_id      = rv.instance_id AND
                    nv.node_id         = rv.node_id AND
                    i.approve_count    = rv.approve_count AND
                    rv.user_id         = su.user_id AND
                    rv.record_type     = 'NORMAL' AND
                    nv.node_desc       = '财务部负责人审批' AND
                    rownum             = 1 AND
                    hs.prj_side_id     =${/parameter/@prj_side_id}
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
