|
@@ -337,7 +337,7 @@
|
|
|
|
|
|
<!-- 文件收集 归档树的文件数量 -->
|
|
<!-- 文件收集 归档树的文件数量 -->
|
|
<select id="selectFileNumber" resultType="java.lang.Integer">
|
|
<select id="selectFileNumber" resultType="java.lang.Integer">
|
|
- SELECT sum(b.file_page) FROM m_archive_tree_contract a
|
|
|
|
|
|
+ SELECT count(0) FROM m_archive_tree_contract a
|
|
inner join u_archive_file b on b.node_id = a.id and b.is_deleted = a.is_deleted and b.project_id = a.project_id and (b.is_auto_file is null or b.is_auto_file != 1)
|
|
inner join u_archive_file b on b.node_id = a.id and b.is_deleted = a.is_deleted and b.project_id = a.project_id and (b.is_auto_file is null or b.is_auto_file != 1)
|
|
WHERE a.is_deleted = 0
|
|
WHERE a.is_deleted = 0
|
|
and a.project_id = #{projectId}
|
|
and a.project_id = #{projectId}
|