<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: qianming $Date: 2015-9-4 下午9:31:45 $Revision: 1.0 $Purpose: 公共模版下载(如某功能的导出模版) --> <bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="BGFL_COMMON_TEMPLATE"> <bm:fields> <bm:field name="template_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TEMPLATE_ID" prompt="BGFL_COMMON_TEMPLATE.TEMPLATE_ID"/> <bm:field name="template_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TEMPLATE_CODE" prompt="模版编码"/> <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="模版描述"/> <bm:field name="function_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FUNCTION_ID"/> <bm:field name="function_code" expression="(select function_code from sys_function_v where function_id = t1.function_id)" forInsert="false" forUpdate="false" prompt="功能编码"/> <bm:field name="function_name" expression="(select function_name from sys_function_v where function_id = t1.function_id)" forInsert="false" forUpdate="false" prompt="功能名称"/> <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="是否启用"/> </bm:fields> <bm:features> <f:standard-who/> <o:sequence-pk/> </bm:features> <bm:primary-key> <bm:pk-field name="template_id"/> </bm:primary-key> <bm:query-fields> <bm:query-field field="template_code" queryExpression="upper(t1.template_code) like '%' || upper(${@template_code}) || '%'"/> <bm:query-field field="description" queryExpression="upper(t1.description) like '%' || upper(${@description}) || '%'"/> <bm:query-field field="function_id" queryOperator="="/> </bm:query-fields> </bm:model>