<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: Foreinyel  
    $Date: 2014-5-5 下午2:46:20  
    $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
                    h.payment_req_id ,
                    h.company_id ,
                    h.document_type ,
                    h.payment_req_number ,
                    to_char(h.req_date,'yyyy-mm-dd')req_date ,
                    h.amount ,
                    h.description ,
                    h.bp_id ,
                    (SELECT bm.bp_name FROM hls_bp_master bm WHERE bm.bp_id = h.bp_id
                    ) bp_name
                FROM
                    csh_payment_req_hd h
                    #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
