<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gzj
    $Date: 2022年03月20日 17:13:08
    $Revision: 1.0
    $Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:fields>
        <bm:field name="file_path" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="file_name" databaseType="VARCHAR2" datatype="java.lang.String"/>
    </bm:fields>
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT fa.file_name,fa.file_path
                  FROM fnd_atm_attachment fa, fnd_atm_attachment_multi fm
                 WHERE fa.attachment_id = fm.attachment_id
                   and fm.table_name = 'CUX_CONTRACT_PRINT'
                   and fm.table_pk_value = ${@record_id}
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
