<?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:parameters>
                <bm:parameter name="report_name" dataType="java.lang.String" input="true" output="false"/>
                <bm:parameter name="check_company_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="check_user_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="check_role_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="user_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="control_id" dataType="java.lang.Long" input="true" output="true"/>
                <bm:parameter name="check_date" input="true"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    RPT_REPORT_CONTROL_PKG.CHECKIN_RPT
                    (
                        p_report_name=>${@report_name},
                        p_check_company_id=>${/session/@company_id},
                        p_check_user_id=>${@check_user_id},
                        p_check_role_id=>${@check_role_id},
                        p_user_id=>${/session/@user_id},
                        p_check_date=>to_date(${@check_date},'YYYY-MM-DD'),
                        p_control_id=>${@control_id}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
