<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: sf
    $Date: 2019-09-23 18:30:34
    $Revision: 1.0  
    $Purpose: 修改授信的状态
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
             begin 
                 hls_bp_master_credit_pkg.update_credit_status(
                                p_bp_credit_hd_id   =>${@bp_credit_hd_id},
                                p_credit_total_amount =>${@credit_total_amount},
                                p_credit_date_from    =>to_date(${@credit_date_from},'yyyy-mm-dd'),
                                p_credit_date_to      =>to_date(${@credit_date_to},'yyyy-mm-dd'),
                                p_user_id           =>${/session/@user_id},
                                p_used_amount=>${@used_amount},
                                p_bp_id=>${@bp_id}
                   );
             end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>


