<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: hand  
    $Date: 2016-6-29 上午9:59:47  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="COLLECTION_OVERDUE_STATUS">
    <bm:fields>
        <bm:field name="status_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="STATUS_ID" prompt="COLLECTION_OVERDUE_STATUS.STATUS_ID"/>
        <bm:field name="status_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATUS_CODE" prompt="COLLECTION_OVERDUE_STATUS.STATUS_CODE"/>
        <bm:field name="status_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATUS_NAME" prompt="COLLECTION_OVERDUE_STATUS.STATUS_NAME"/>
        <bm:field name="status_des" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATUS_DES" prompt="COLLECTION_OVERDUE_STATUS.STATUS_DES"/>
        <bm:field name="risk_rank" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="RISK_RANK" prompt="COLLECTION_OVERDUE_STATUS.RISK_RANK"/>
        <bm:field name="enabled" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED" prompt="COLLECTION_OVERDUE_STATUS.ENABLED"/>
        <!--  <bm:field name="operation_date" databaseType="DATE" datatype="java.util.Date" physicalName="OPERATION_DATE" prompt="COLLECTION_OVERDUE_STATUS.OPERATION_DATE"/> -->
        <bm:field name="operation_persons" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="OPERATION_PERSONS" prompt="COLLECTION_OVERDUE_STATUS.OPERATION_PERSONS"/>
        <bm:field name="overdue_status_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="OVERDUE_STATUS_TYPE" prompt="COLLECTION_OVERDUE_STATUS.OVERDUE_STATUS_TYPE"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="status_id"/>
    </bm:primary-key>
    <!-- <bm:operations>
        <bm:operation name="insert">
            <bm:update-sql><![CDATA[
                DECLARE
                BEGIN
                    INSERT
                    INTO
                        COLLECTION_OVERDUE_STATUS
                        (
                            STATUS_ID,
                            STATUS_CODE,
                            STATUS_NAME,
                            STATUS_DES,
                            RISK_RANK,
                            ENABLED,
                            OPERATION_DATE,
                            OPERATION_PERSONS,
                            OVERDUE_STATUS_TYPE,
                            CREATED_BY,
                            CREATION_DATE,
                            LAST_UPDATED_BY,
                            LAST_UPDATE_DATE
                        )
                        VALUES
                        (
                            ${@status_id},
                            ${@status_code},
                            ${@status_name},
                            ${@status_des},
                            ${@risk_rank},
                            ${@enabled},
                            sysdate,
                            ${@OPERATION_PERSONS},
                            ${@overdue_status_type},
                            ${/session/@user_id},
                            sysdate,
                            ${/session/@user_id},
                            sysdate
                        )
                END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations> -->
</bm:model>
