<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-5-30 下午1:51:06  
    $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>
