<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    cc.contract_number
                FROM
                    con_contract cc
                WHERE
                    cc.contract_id = ${@contract_id}
            ]]></bm:query-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                    update zj_sys_mailing_list zj
                       set zj.attch_file_name = ${@attch_file_name},
                           zj.attch_file_path = ${@attch_file_url},
                           zj.attch_flag      = 'Y'
                     where zj.mailing_list_id = ${@mailing_list_id}
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="contract_number"/>
    </bm:fields>
</bm:model>
