<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gzj
    $Date: 2022-06-10
    $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 nvl(sum(cp.due_amount),0) all_amount from CON_CONTRACT_PENALTY_INFO_LV cp
            where cp.copy_contract_id = ${@copy_contract_id}
    		]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="all_amount"></bm:field>
    </bm:fields>
</bm:model>
