<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="execute">
            <bm:parameters>
                <bm:parameter name="contract_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="et_date" datatype="java.util.Date" input="true" output="false"/>
                <bm:parameter name="et_principal" dataType="java.lang.Long" input="false" output="true"/>
                <bm:parameter name="et_interest" dataType="java.lang.Double" input="false" output="true"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    con_contract_dff_et_pkg.calc_et_data
                    (
                        p_contract_id=>${@contract_id},
                        p_et_date=>${@et_date},
                        p_et_principal=>${@et_principal},
                        p_et_interest=>${@et_interest}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:parameters>
                <bm:parameter name="contract_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="et_date" datatype="java.util.Date" input="true" output="false"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    con_contract_dff_et_pkg.calc_et_cashflow
                    (
                        p_contract_id=>${@contract_id},
                        p_et_date=>${@et_date},
                        p_user_id=>${/session/@user_id}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
