<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang  
    $Date: 2015-11-13 下午03:23:39  
    $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
                    cc.contract_id,
                    cc.contract_number,
                    cc.contract_name,
                    cc.base_rate new_base_rate,
                    (SELECT
                        h.base_rate
                    FROM
                        con_contract h
                    WHERE
                        h.contract_id = ${@old_contract_id}
                    ) original_original
                FROM
                    con_contract cc
                WHERE
                    cc.contract_id = ${@new_contract_id}
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
