|
@@ -67,14 +67,14 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectArchivesAutoFileCount" resultType="java.lang.Integer">
|
|
<select id="selectArchivesAutoFileCount" resultType="java.lang.Integer">
|
|
- select count(id) from u_archives_auto where is_deleted = 0
|
|
|
|
|
|
+ select count(id) from u_archives_auto where is_deleted = 0 and is_archive = 1
|
|
<if test="vo.projectId != null and vo.projectId != ''">
|
|
<if test="vo.projectId != null and vo.projectId != ''">
|
|
and project_id = #{vo.projectId}
|
|
and project_id = #{vo.projectId}
|
|
</if>
|
|
</if>
|
|
<if test="vo.contractId != null and vo.contractId != ''">
|
|
<if test="vo.contractId != null and vo.contractId != ''">
|
|
and contract_id = #{vo.contractId}
|
|
and contract_id = #{vo.contractId}
|
|
</if>
|
|
</if>
|
|
- <if test="vo.contractId != null and vo.contractId != ''">
|
|
|
|
|
|
+ <if test="vo.isAutoFile != null and vo.isAutoFile != ''">
|
|
and is_auto_file = #{vo.isAutoFile}
|
|
and is_auto_file = #{vo.isAutoFile}
|
|
</if>
|
|
</if>
|
|
<if test="vo.nodeIds != null and vo.nodeIds != ''">
|
|
<if test="vo.nodeIds != null and vo.nodeIds != ''">
|
|
@@ -86,7 +86,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectArchivesAutoFilePage" resultMap="archivesAutoResultMap">
|
|
<select id="selectArchivesAutoFilePage" resultMap="archivesAutoResultMap">
|
|
- select * from u_archives_auto where is_deleted = 0
|
|
|
|
|
|
+ select * from u_archives_auto where is_deleted = 0 and is_archive = 1
|
|
<if test="vo.projectId != null and vo.projectId != ''">
|
|
<if test="vo.projectId != null and vo.projectId != ''">
|
|
and project_id = #{vo.projectId}
|
|
and project_id = #{vo.projectId}
|
|
</if>
|
|
</if>
|
|
@@ -102,7 +102,7 @@
|
|
#{nodeId}
|
|
#{nodeId}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
- order by tree_sort DESC,auto_file_sort asc
|
|
|
|
|
|
+ order by tree_sort,auto_file_sort,file_number asc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<update id="updateArchivesAutoFileByNodeId" >
|
|
<update id="updateArchivesAutoFileByNodeId" >
|