<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    TO_CHAR(sysdate, 'YYYY')
                    || '-01'
                    || '-01'
                    || '到'
                    || TO_CHAR(sysdate, 'YYYY')
                    || '-'
                    ||
                    (SELECT
                        TO_CHAR(gp.start_date - 1, 'MM')
                    FROM
                        gld_periods gp
                    WHERE
                        gp.adjustment_flag    <> 'Y' AND
                        gp.internal_period_num = TO_CHAR(sysdate, 'YYYYMM')
                    )
                    || '-'
                    ||
                    (SELECT
                        TO_CHAR(gp.start_date - 1, 'DD')
                    FROM
                        gld_periods gp
                    WHERE
                        gp.adjustment_flag    <> 'Y' AND
                        gp.internal_period_num = TO_CHAR(sysdate, 'YYYYMM')
                    ) data04
                FROM
                    dual
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
