hls_division.lwm 818 Bytes
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?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="division" />
        <bm:field name="description" />
    </bm:fields>
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT distinct('00') division,'挖掘机/OEM' description
                 FROM hls_division hd
                 where hd.enabled_flag = 'Y'
                 and hd.division in (00,10)
                 union all
                 SELECT division,description
                 FROM hls_division hd
                 where hd.enabled_flag = 'Y'
                 and hd.division in (01,03)
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>