<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: chenlingfeng  
    $Date: 2017-8-7 下午2:10:40  
    $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
                    rownum,t1.*
                FROM
                    (SELECT
                  
                        pci.*,
                        pcf.document_id pcf_document_id
                    FROM
                        prj_cdd_item_doc_ref pcf,
                        prj_cdd_item_check pck,
                        prj_cdd_item pci
                    WHERE
                        pcf.document_table = 'HN_EXPENSES_APP' AND
                        pck.check_id       = pcf.check_id AND
                        pck.cdd_item_id    = pci.cdd_item_id
                    ) t1 #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
