<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[select  pp.fin_now_rental,pp.fin_credit_rental,pp.project_id from prj_project pp where pp.project_id= ${/parameter/@project_id}]]></bm:query-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
        		
        		  update prj_project pp 
        		     set pp.fin_now_rental=${@fin_now_rental},
        		         pp.fin_credit_rental = ${@fin_credit_rental}
        		   where pp.project_id = ${@project_id}    
        		
        	]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="fin_now_rental" databaseType="NUMBER" datatype="java.lang.Double" physicalName="FIN_NOW_RENTAL"/>
        <bm:field name="fin_credit_rental" databaseType="NUMBER" datatype="java.lang.Double" physicalName="FIN_CREDIT_RENTAL"/>
        <bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long"/>
    </bm:fields>
</bm:model>
