<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: WangYu  
    $Date: 2014-11-10 下午02:22:33  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[select 'Y' flag from dual where exists (select * from yonda_doc_status_history_vl t,con_contract cc where t.document_category='PROJECT' and cc.contract_id = ${/parameter/@contract_id} and t.document_id=cc.project_id and t.status = '290')]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="flag" databaseType="CHAR" datatype="java.lang.String" physicalName="flag"/>
    </bm:fields>
</bm:model>
