<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: syj  
    $Date: 2015年8月18日16:22: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 c.document_type
			  FROM con_contract c
			 WHERE c.contract_id = (SELECT ref_doc_id
			                          FROM csh_payment_req_ln l
			                         WHERE l.payment_req_id = ${/parameter/@payment_req_id}
			                         GROUP BY l.ref_doc_id)

            
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
