<?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="batch_id" dataType="java.lang.Long"/>
                <bm:parameter name="batch_name" dataType="java.lang.String"/>
                <bm:parameter name="date_from" dataType="java.util.Date"/>
                <bm:parameter name="date_to" dataType="java.util.Date"/>
                <bm:parameter name="enable_flag" dataType="java.lang.String"/>
                <bm:parameter name="division" dataType="java.lang.String"/>
                <bm:parameter name="user_id" dataType="java.lang.Long"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    goods_policy_pkg.create_t_goods_batch(
                    p_batch_id =>${@batch_id},
                    p_batch_name =>${@batch_name},
                    p_date_from =>${@date_from},
                    p_date_to =>${@date_to},
                    p_enable_flag =>${@enable_flag},
                    p_division =>${@division},
                    p_user_id =>${/session/@user_id});
                end;
                ]]>
            </bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>