<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
   select '宏菱抬头所有权转移通知书' as file_name,
       (select u.employee_name
          from sys_user_v u
         where u.user_id = ct.created_by) print_user,
       to_char(print_date, 'yyyy-mm-dd HH24:MI:SS') print_date
  from csh_transaction_return_print ct
 where ct.document_table = 'CON_CONTRACT_FINISH_LEASE'
   and ct.document_id = ${@contract_id}
   order by ct.print_date desc
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
