|
@@ -73,9 +73,9 @@
|
|
|
<select id="selectArchiveFileCount" resultType="java.lang.Integer">
|
|
|
select count(u.id) from u_archive_file u
|
|
|
<if test="vo.nodeIds != null and vo.nodeIds != ''">
|
|
|
- left join m_archive_tree_contract t on t.id = u.node_id
|
|
|
+ left join m_archive_tree_contract t on t.id = u.node_id and t.is_deleted= 0
|
|
|
<if test="vo.extType != null">
|
|
|
- LEFT JOIN m_archive_tree_contract m ON m.id = u.node_ext_id
|
|
|
+ LEFT JOIN m_archive_tree_contract m ON m.id = u.node_ext_id and m.is_deleted= 0
|
|
|
</if>
|
|
|
</if>
|
|
|
where u.is_deleted = 0
|
|
@@ -158,9 +158,9 @@
|
|
|
<select id="selectArchiveFilePage" resultMap="archiveFileResultMap">
|
|
|
select u.* from u_archive_file u
|
|
|
<if test="vo.nodeIds != null and vo.nodeIds != ''">
|
|
|
- left join m_archive_tree_contract t on t.id = u.node_id
|
|
|
+ left join m_archive_tree_contract t on t.id = u.node_id and t.is_deleted= 0
|
|
|
<if test="vo.extType != null">
|
|
|
- LEFT JOIN m_archive_tree_contract m ON m.id = u.node_ext_id
|
|
|
+ LEFT JOIN m_archive_tree_contract m ON m.id = u.node_ext_id and m.is_deleted= 0
|
|
|
</if>
|
|
|
</if>
|
|
|
where u.is_deleted = 0
|