<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[select 
  et.templete_id,
  eh.table_name,
  eh.sheet_seq,
  eh.multi_flag,
  eh.multi_line_from,
  eh.multi_line_to,
  eh.hd_id
from hls_excel_templete et ,hls_excel_templete_hd eh
where et.templete_code = ${@templete_code}
and eh.templete_id= et.templete_id
and eh.multi_flag = 'Y'
order by  eh.table_name]]></bm:query-sql>
            <bm:parameters>
                <bm:parameter name="templete_code"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="templete_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TEMPLETE_ID" required="true"/>
        <bm:field name="table_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TABLE_NAME"/>
        <bm:field name="sheet_seq" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SHEET_SEQ"/>
        <bm:field name="multi_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MULTI_FLAG"/>
        <bm:field name="multi_line_from" databaseType="NUMBER" datatype="java.lang.Long" physicalName="MULTI_LINE_FROM"/>
        <bm:field name="multi_line_to" databaseType="NUMBER" datatype="java.lang.Long" physicalName="MULTI_LINE_TO"/>
        <bm:field name="hd_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="HD_ID" required="true"/>
    </bm:fields>
</bm:model>
