<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: wangwei  
    $Date: 2014-12-19 下午12:31:02  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="YONDA_HLS_TL_ITFC_HEADER">
    <bm:fields>
        <bm:field name="tl_itfc_header_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TL_ITFC_HEADER_ID" prompt="YONDA_HLS_TL_ITFC_HEADER.TL_ITFC_HEADER_ID"/>
        <bm:field name="trx_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TRX_CODE" prompt="YONDA_HLS_TL_ITFC_HEADER.TRX_CODE"/>
        <bm:field name="trx_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TRX_STATUS" prompt="YONDA_HLS_TL_ITFC_HEADER.TRX_STATUS"/>
        <bm:field name="version" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VERSION" prompt="YONDA_HLS_TL_ITFC_HEADER.VERSION"/>
        <bm:field name="data_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DATA_TYPE" prompt="YONDA_HLS_TL_ITFC_HEADER.DATA_TYPE"/>
        <bm:field name="tl_level" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TL_LEVEL" prompt="YONDA_HLS_TL_ITFC_HEADER.TL_LEVEL"/>
        <bm:field name="req_sn" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REQ_SN" prompt="YONDA_HLS_TL_ITFC_HEADER.REQ_SN"/>
        <bm:field name="signed_msg" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SIGNED_MSG" prompt="YONDA_HLS_TL_ITFC_HEADER.SIGNED_MSG"/>
        <bm:field name="business_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BUSINESS_CODE" prompt="YONDA_HLS_TL_ITFC_HEADER.BUSINESS_CODE"/>
        <bm:field name="merchant_id" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MERCHANT_ID" prompt="YONDA_HLS_TL_ITFC_HEADER.MERCHANT_ID"/>
        <bm:field name="settday" databaseType="DATE" datatype="java.util.Date" physicalName="SETTDAY" prompt="YONDA_HLS_TL_ITFC_HEADER.SETTDAY"/>
        <bm:field name="submit_time" databaseType="DATE" datatype="java.util.Date" physicalName="SUBMIT_TIME" prompt="YONDA_HLS_TL_ITFC_HEADER.SUBMIT_TIME"/>
        <bm:field name="total_item" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TOTAL_ITEM" prompt="YONDA_HLS_TL_ITFC_HEADER.TOTAL_ITEM"/>
        <bm:field name="total_sum" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TOTAL_SUM" prompt="YONDA_HLS_TL_ITFC_HEADER.TOTAL_SUM"/>
        <bm:field name="trx_status_des" expression="(select a.code_value_name from sys_code_values_v a where a.code=&apos;CSH602_YONDA_HLS_TL_STATUS&apos; and a.code_value=t1.trx_status)"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="trx_code" queryOperator="like"/>
        <bm:query-field field="req_sn" queryOperator="like"/>
        <bm:query-field field="business_code" queryOperator="like"/>
        <bm:query-field field="trx_status" queryOperator="="/>
        <bm:query-field name="start_date" queryExpression="t1.submit_time&gt;to_date(${@start_date},&apos;yyyy-mm-dd&apos;)"/>
        <bm:query-field name="end_date" queryExpression="t1.submit_time&lt;to_date(${@end_date},&apos;yyyy-mm-dd&apos;)"/>
    </bm:query-fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="tl_itfc_header_id"/>
    </bm:primary-key>
</bm:model>
