<?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="update">
            <bm:update-sql><![CDATA[
                begin
                contract_sign_message_pkg.send_mobile_remind_info(p_user_id =>${/session/@user_id}, p_batch_id
                =>${@batch_id});
                end;
                ]]>
            </bm:update-sql>
            <bm:parameters>
                <bm:parameter name="batch_id" dataType="java.lang.Long" input="true" output="true"
                              outputPath="/parameter/@batch_id"/>
            </bm:parameters>
        </bm:operation>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT *
                FROM (SELECT count(*) num
                FROM sys_sms_list a
                WHERE a.batch_id = ${@batch_id}
                and a.status = 'FAIL') t1
                #WHERE_CLAUSE#
                ]]>
            </bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="num"/>
    </bm:fields>
</bm:model>
