<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: weiwuzhen  
    $Date: 2016-6-21 下午2:47:19  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[select rank() over(partition by t.project_id order by t.PROJECT_LEASE_ITEM_ID) lease_item_seq, --序号
       t.full_name, --名称
       t.pattern, --规格型号
       t.vender_name, --生产厂商
       t.quantity, --数量
       to_char( t.lease_transfer_price,'FM999,999,999,990.00') lease_transfer_price, --购买金额
       t.description --备注
  from prj_project_lease_item t
  where t.project_id=${/parameter/@project_id}
  ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <!-- <bm:fields>
        <bm:field name="lease_item_seq" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LEASE_ITEM_SEQ"/>
        <bm:field name="full_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FULL_NAME"/>
        <bm:field name="pattern" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PATTERN"/>
        <bm:field name="vender_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VENDER_NAME"/>
        <bm:field name="quantity" databaseType="NUMBER" datatype="java.lang.Long" physicalName="QUANTITY"/>
        <bm:field name="lease_transfer_price" databaseType="NUMBER" datatype="java.lang.Long" physicalName="LEASE_TRANSFER_PRICE"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION"/>
    </bm:fields> -->
</bm:model>
