<?xml version="1.0" encoding="UTF-8"?>
<!--
    @Author: xsh 35973  
    @Date: 2022/6/13 13:59
    @Revision: 1.0  
    @Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:fields>
        <bm:field name="contract_status"/>
    </bm:fields>
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
            select contract_status from con_contract t1 #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
                begin
                    cus_con_et_pkg.check_cashflow_write_off(p_contract_id =>${@contract_id},
                                                            p_user_id     =>${/session/@user_id});
                end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>