|
@@ -385,6 +385,23 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="getListByContractId" resultType="org.springblade.business.entity.ArchiveFile">
|
|
|
+ SELECT
|
|
|
+ u.id,
|
|
|
+ u.project_id AS projectId,
|
|
|
+ u.node_id AS nodeId,
|
|
|
+ u.node_ext_id AS nodeExtId,
|
|
|
+ u.file_name AS fileName,
|
|
|
+ u.pdf_file_url AS pdfFileUrl,
|
|
|
+ u.sort
|
|
|
+ FROM
|
|
|
+ u_archive_file u
|
|
|
+ LEFT JOIN m_archive_tree_contract ar on u.node_id = ar.id
|
|
|
+ where u.contract_id = #{contractId}
|
|
|
+ AND u.is_deleted = 0
|
|
|
+ AND u.source_type = 1 and ar.is_deleted = 0;
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getListByContractId1" resultType="org.springblade.business.entity.ArchiveFile">
|
|
|
select id,
|
|
|
project_id as projectId,
|
|
|
node_id as nodeId,
|
|
@@ -395,6 +412,7 @@
|
|
|
from u_archive_file
|
|
|
where contract_id = #{contractId} and is_deleted = 0 and source_type = 1;
|
|
|
</select>
|
|
|
+
|
|
|
<select id="getAllArchiveAutoByContractType" resultType="org.springblade.archive.vo.ArchivesAutoVO">
|
|
|
SELECT uaa.*, matc.tree_code as 'contractType'
|
|
|
FROM u_archives_auto uaa
|