collection_overdue_status.lwm 3.51 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
<?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>