<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangxing5129  
    $Date: 2014-10-13 下午01:02:37  
    $Revision: 1.0  
    $Purpose: 项目创建校验 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="update">
            <bm:parameters>
                <bm:parameter name="cdd_list_id" dataType="java.lang.Long" input="true" output="true" outputPath="@cdd_list_id"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                BEGIN
                    hlcm_pur_order_pkg.pur_create_save_check(p_project_id =>${@project_id},
                                                              p_user_id =>${/session/@user_id},
                                                              p_function_code =>${@function_code},
                                                              p_function_usage =>${@function_usage},
                                                              p_project_status =>${@project_status},
                                                              p_bp_id_tenant =>${@bp_id_tenant},
                                                              p_cdd_list_id => ${@cdd_list_id});
                END;
            ]]></bm:update-sql>
        </bm:operation>
		        <bm:operation name="query">
            <bm:query-sql>
                select bp.bp_wfl_status from hls_bp_master bp where bp.bp_id =${@bp_id_tenant}
            </bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
