<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang  
    $Date: 2013-12-17 下午07:41:46  
    $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
                    check_authority,
                    authority_usage
                FROM
                    aut_company_authority_setup
                WHERE
                    company_id                        = ${/session/@top_biz_company_id} AND
                    check_authority                   ='Y' AND
                    ${/session/@enable_user_authority}='Y' AND
                    ${/session/@owner_user_aut_flag}  ='Y'
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="check_authority" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CHECK_AUTHORITY"/>
        <bm:field name="authority_usage" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="AUTHORITY_USAGE"/>
    </bm:fields>
</bm:model>
