<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qwm  
    $Date: 2013-7-15 下午7:59:08  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT t1.document_use_seal_id,
                   t1.document_table,
                   t1.CONTRACT_ID,
                   t1.instruments_types,
                   t1.instruments_types_n,
                   t1.common_seal,
                   t1.common_seal_n,
                   t1.corporate_visa_seal,
                   t1.corporate_visa_seal_n,
                   t1.legal_seal,
                   t1.legal_seal_n,
                   t1.con_special_seal,
                   t1.con_special_seal_n,
                   t1.financial_seal,
                   t1.financial_seal_n,
                   t1.supervisio_seal,
                   t1.supervisio_seal_n,
                   t1.SEAL_QUANTITY,
                   t1.seal_number,
                   t1.seal_number_n
                FROM con_contract_use_seal_lv t1
                WHERE
                    t1.contract_id     = ${@contract_id}
                    and t1.document_table = 'CON_CONTRACT_FINISH'
                
            ]]></bm:query-sql>
            <bm:parameters>
                <bm:parameter name="contract_id"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
</bm:model>
