<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: chenlingfeng  
    $Date: 2017-8-2 上午11:06:02  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    t1.*,
                    TO_CHAR(t1.expenses_date, 'yyyy-mm-dd') expenses_date_n,
                    (TO_CHAR(NVL(t1.expenses_amount, 0), 'FM999,999,999,999,990.90')
                    || '元') expenses_amount_n,
                    DECODE(t1.fund_use, 'EXTERNAL_TRANSFER', '√', '□') external_transfer_n,
                    DECODE(t1.fund_use, 'INTERNAL_TRANSFER', '√', '□') internal_transfer_n
                FROM
                    hn_expenses_app_lv t1 #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
