<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang  
    $Date: 2014-1-15 下午02:25:20  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                DECLARE
                    v_num NUMBER;
                BEGIN
                    SELECT
                        1
                    INTO
                        v_num
                    FROM
                        con_contract t
                    WHERE
                        t.contract_id IN (${:@contract_list})
                    GROUP BY
                        t.currency;
                EXCEPTION
                WHEN too_many_rows THEN
                    sys_raise_app_error_pkg.raise_user_define_error(p_message_code => 'CON_FINANCE_INCOME_PKG.CURRENCY_DIFFERENT_ERROR', p_created_by => ${/session/@user_id}, p_package_name => 'con_finance_income_pkg', p_procedure_function_name => 'check_fin_income_currency');
                    raise_application_error(sys_raise_app_error_pkg.c_error_number, sys_raise_app_error_pkg.g_err_line_id);
                END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
