<?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
                    t.project_id,
                    t.project_number,
                    t.project_name,
                    t.project_status,
                    t.bp_class,
                    t.bp_class_n,
                    t.business_type,
                    t.business_type_n,
                    t.division,
                    t.division_n,
                    t.car_type,
                    t.car_type_n,
                    t.finance_amount,
                    t.bp_name,
                    t.invoice_agent_id,
                    t.invoice_agent_id_n,
                    t.cdd_list_id,
                    TO_CHAR(t.create_date,'yyyy-mm-dd') create_date
                FROM
                    prj_project_lv t
                WHERE
                    t.project_id=${@project_id}
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="project_id"/>
        <bm:field name="project_number"/>
        <bm:field name="invoice_agent_id"/>
        <bm:field name="invoice_agent_id_n"/>
        <bm:field name="cdd_list_id"/>
        <bm:field name="division"/>
        <bm:field name="division_n"/>
        <bm:field name="business_type"/>
        <bm:field name="business_type_n"/>
        <bm:field name="finance_amount"/>
        <bm:field name="project_name"/>
        <bm:field name="project_status"/>
        <bm:field name="bp_class"/>
        <bm:field name="bp_class_n"/>
        <bm:field name="car_type"/>
        <bm:field name="car_type_n"/>
        <bm:field name="bp_name"/>
        <bm:field name="create_date"/>
    </bm:fields>
</bm:model>
