<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: LR
    $Date: 2013-7-16 下午06:07:55
    $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
              for cur in(select cc.contract_id from
                       con_contract cc
                       where cc.contract_id in (${:@contract_ids}) ) loop
                con_rent_dun_msg_pkg.rent_dun_sms_create(p_user_id     => ${/session/@user_id},
                                                         p_contract_id => cur.contract_id,
                                                         p_msg_type    => ${@msg_type});
              end loop;
            end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
