<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang 
    $Date: 2015-4-14 上午09:21:47  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
        		BEGIN
        			by_hls_wx_core_pkg.wx_calc_try(
        				p_price_list        =>${@price_list},
                        p_lease_item_amount =>replace(${@lease_item_amount},',',''),
                        p_down_payment      =>replace(${@down_payment},',',''),
                        p_lease_times       =>${@lease_times},
                        p_annual_pay_times  =>${@annual_pay_times},
                        p_int_rate          =>${@int_rate},
                        p_pay_type          =>${@pay_type},
                        p_deposit           =>replace(${@deposit},',',''),
                        p_deposit_deduction =>${@deposit_deduction},
                        p_lease_charge      =>replace(${@lease_charge},',',''),
                        p_other_fee2        =>replace(${@other_fee2},',',''),
                        p_lease_mgt_fee     =>replace(${@lease_mgt_fee},',',''),
                        p_residual_value    =>replace(${@residual_value},',',''),
                        p_other_fee3        =>replace(${@other_fee3},',',''),
                        p_user_id           =>${@user_id},
                        p_calc_session_id   =>${@calc_session_id},
                        p_calc_successful   =>${@calc_successful},
                        p_warning_message   =>${@warning_message}
        			);
        		END;
			]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter name="calc_session_id" dataType="java.lang.Long" input="false" output="true" outputPath="/parameter/@calc_session_id"/>
                <bm:parameter name="calc_successful" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@calc_successful"/>
                <bm:parameter name="warning_message" dataType="java.lang.String" input="false" output="true" outputPath="/parameter/@warning_message"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
</bm:model>
