<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
                BEGIN
                cus_con_change_req_pkg.con_single_calc(p_contract_id=>${@contract_id},
                                                              p_user_id=>${/session/@user_id});
                END;
                ]]>
            </bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:parameters>
                <bm:parameter name="sum_unreceived_principal" dataType="java.lang.Double" input="false" output="true" outputPath="@sum_unreceived_principal"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                BEGIN
                rent_plan_single_pkg.update_unrecived_principal(p_contract_id=>${@contract_id},
                                                        p_ccr_start_times => ${@ccr_start_times},
                                                        p_user_id=>${/session/@user_id},
                                                        p_sum_unreceived_principal => ${@sum_unreceived_principal});
                END;
                ]]>
            </bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>