<?xml version="1.0" encoding="UTF-8"?>

<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:fields>
        <bm:field name="value_code" />
        <bm:field name="value_name" />
    </bm:fields>
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                select a.code_value value_code, a.code_value_name value_name
                  from sys_code_values_v a
                 where a.code = 'CON_CHANGE_REQ_STATUS'
                   and a.code_enabled_flag = 'Y'
                   and a.code_value_enabled_flag = 'Y'
                   and a.code_value IN ('APPROVED','APPROVING')
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>