<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: Administrator  
    $Date: 2016-4-22 下午1:00:51  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[select v.code_value as value_code, v.code_value_name as value_name,order_seq
from sys_code_values_v v
where v.code = 'WITHIN_GROUP'
and v.code_enabled_flag = 'Y'
and v.code_value_enabled_flag = 'Y'
and 'WITHIN_GROUP'=nvl(${@hn_industry_classification},'1') union all
select v.code_value as value_code, v.code_value_name as value_name,order_seq
from sys_code_values_v v
where v.code = 'MARKETIZATION'
and v.code_enabled_flag = 'Y'
and v.code_value_enabled_flag = 'Y'
and 'MARKETIZATION'=nvl(${@hn_industry_classification},'1')
order by order_seq
]]></bm:query-sql>
            <bm:parameters>
                <bm:parameter name="hn_industry_classification"/>
            </bm:parameters>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="value_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VALUE_CODE"/>
        <bm:field name="value_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VALUE_NAME"/>
		<bm:field name="order_seq" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="order_seq"/>
    </bm:fields>
</bm:model>
