<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang 
    $Date: 2014-12-29 下午04:58:41  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="YONDA_INTERFACE_LOGS" defaultOrderBy="t1.interface_log_id desc">
    <bm:fields>
        <bm:field name="interface_log_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INTERFACE_LOG_ID" prompt="YONDA_INTERFACE_LOGS.INTERFACE_LOG_ID"/>
        <bm:field name="interface_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERFACE_TYPE" prompt="YONDA_INTERFACE_LOGS.INTERFACE_TYPE"/>
        <bm:field name="source_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_ID" prompt="YONDA_INTERFACE_LOGS.SOURCE_ID"/>
        <bm:field name="source_table" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SOURCE_TABLE" prompt="YONDA_INTERFACE_LOGS.SOURCE_TABLE"/>
        <bm:field name="interface_deal_message" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INTERFACE_DEAL_MESSAGE" prompt="YONDA_INTERFACE_LOGS.INTERFACE_DEAL_MESSAGE"/>
        <bm:field name="itfc_exception" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ITFC_EXCEPTION" prompt="YONDA_INTERFACE_LOGS.ITFC_EXCEPTION"/>
        <bm:field name="external_itfc_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXTERNAL_ITFC_NUM" prompt="YONDA_INTERFACE_LOGS.EXTERNAL_ITFC_NUM"/>
        <bm:field name="interface_date" databaseType="DATE" datatype="java.util.Date" physicalName="INTERFACE_DATE" prompt="YONDA_INTERFACE_LOGS.INTERFACE_DATE"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="interface_log_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter name="source_id" enforceOperations="query" expression="t1.source_id=${@source_id}"/>
        <bm:data-filter name="source_table" enforceOperations="query" expression="t1.source_table=${@source_table}"/>
    </bm:data-filters>
</bm:model>
