Commit aa529296 authored by Spencer Chang's avatar Spencer Chang

[feat] 删除不需要的文件

parent bfd31bca
<?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 rownum rn, t.*
FROM (SELECT s.content_id,
SUBSTR(c.file_name, 1, INSTR(c.file_name, '.', 1) - 1) file_name,
c.file_path,
s.contract_id
FROM con_contract_signature s, con_contract_content c
WHERE s.status != 0
AND c.content_id = s.content_id
GROUP BY s.content_id, c.file_name, c.file_path, s.contract_id) t
where t.contract_id = nvl(${@contract_id},t.contract_id)
and t.content_id = nvl(${@content_id},t.content_id)
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field name="contract_id " queryExpression="t.contract_id = ${@contract_id}"/>
<bm:query-field name="content_id " queryExpression="t.content_id = ${@content_id}"/>
</bm:query-fields>
<bm:fields>
<bm:field name="file_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FILE_NAME"/>
<bm:field name="file_path" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FILE_PATH"/>
<bm:field name="content_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTENT_ID"/>
<bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID"/>
<bm:field name="rn" databaseType="NUMBER" datatype="java.lang.Long"/>
</bm:fields>
</bm:model>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment