<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    t.*
                FROM
                    (SELECT
                        c.class_code,
                        c.description,
                        c.parent_class_id,
                        c.class_id
                    FROM
                        hls_stat_class c
                    WHERE
                        c.parent_class_id = 156
                    ) t #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="class_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" forDisplay="true" forQuery="true" physicalName="CLASS_CODE" prompt="行业编码"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="250" forDisplay="true" forQuery="true" physicalName="DESCRIPTION" prompt="行业大类"/>
        <bm:field name="parent_class_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PARENT_CLASS_ID"/>
        <bm:field name="class_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CLASS_ID"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field name="class_code" queryExpression="t.class_code like ${@class_code}"/>
        <bm:query-field name="description" queryExpression="t.description like ${@description}"/>
    </bm:query-fields>
</bm:model>
