<?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" input="true" output="false"/>
                <bm:parameter name="ccr_start_times" input="true" output="false"/>
                <bm:parameter name="btb_payment_date" input="true" output="false"/>
                <bm:parameter name="interim_rental" input="true" output="false"/>
                <bm:parameter name="layout_code" input="true" output="false"/>
                <bm:parameter name="ccr_outstanding_times" input="false" output="true"/>
                <bm:parameter name="ccr_dept" input="false" output="true"/>
                <bm:parameter name="ccr_outstanding_prin_tax_incld" input="false" output="true"/>
                <bm:parameter name="ccr_fee" input="false" output="true"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    con_contract_change_req_pkg.calc_leasse_pay
                    (
                        p_contract_id=>${@contract_id},
                        p_ccr_start_times=>${@ccr_start_times},
                        p_btb_payment_date=>to_date(${@btb_payment_date},'yyyy-mm-dd'),
                        p_interim_rental=>${@interim_rental},
                        p_layout_code=>${@layout_code},
                        p_ccr_outstanding_times=>${@ccr_outstanding_times},
                        p_ccr_dept=>${@ccr_dept},
                        p_ccr_fee=>${@ccr_fee},
                        p_ccr_outstanding_incld=>${@ccr_outstanding_prin_tax_incld}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
