<?xml version="1.0" encoding="UTF-8"?><!-- $Author: WangYu $Date: 2014-11-20 下午04:19:48 $Revision: 1.0 $Purpose: --><bm:modelxmlns:bm="http://www.leaf-framework.org/schema/bm"xmlns:f="leaf.database.features"alias="t1"baseTable="kingdee_interface_logs"defaultOrderBy="t1.interface_date desc"><bm:fields><bm:fieldname="interface_log_id"databaseType="NUMBER"datatype="java.lang.Long"physicalName="INTERFACE_LOG_ID"prompt="kingdee_interface_logs.INTERFACE_LOG_ID"/><bm:fieldname="interface_type"databaseType="VARCHAR2"datatype="java.lang.String"physicalName="INTERFACE_TYPE"prompt="kingdee_interface_logs.INTERFACE_TYPE"/><bm:fieldname="source_id"databaseType="NUMBER"datatype="java.lang.Long"physicalName="SOURCE_ID"prompt="kingdee_interface_logs.SOURCE_ID"/><bm:fieldname="source_table"databaseType="VARCHAR2"datatype="java.lang.String"physicalName="SOURCE_TABLE"prompt="kingdee_interface_logs.SOURCE_TABLE"/><bm:fieldname="interface_deal_message"databaseType="VARCHAR2"datatype="java.lang.String"physicalName="INTERFACE_DEAL_MESSAGE"prompt="kingdee_interface_logs.INTERFACE_DEAL_MESSAGE"/><bm:fieldname="itfc_exception"databaseType="VARCHAR2"datatype="java.lang.String"physicalName="ITFC_EXCEPTION"prompt="kingdee_interface_logs.ITFC_EXCEPTION"/><bm:fieldname="external_itfc_num"databaseType="VARCHAR2"datatype="java.lang.String"physicalName="EXTERNAL_ITFC_NUM"prompt="kingdee_interface_logs.EXTERNAL_ITFC_NUM"/><bm:fieldname="interface_date"/><bm:fieldname="journal_num"expression="(select a.journal_num from hls_journal_header a where a.journal_header_id=t1.source_id)"/></bm:fields><bm:features><f:standard-who/></bm:features><bm:primary-key><bm:pk-fieldname="interface_log_id"/></bm:primary-key><bm:query-fields><bm:query-fieldname="journal_num"queryExpression="exists (select 1 from hls_journal_header a where a.journal_header_id=t1.source_id and a.journal_num=${@journal_num} )"/><bm:query-fieldfield="external_itfc_num"queryOperator="like"/><bm:query-fieldname="start_date"queryExpression="trunc(t1.interface_date)>=to_date(${@start_date},'yyyy-mm-dd')"/><bm:query-fieldname="end_date"queryExpression="trunc(t1.interface_date)<=to_date(${@end_date},'yyyy-mm-dd')"/></bm:query-fields></bm:model>