|
@@ -60,7 +60,7 @@
|
|
|
</update>
|
|
|
|
|
|
<select id="selectArchiveFileCount" resultType="java.lang.Integer">
|
|
|
- select count(id) from u_archive_file where is_deleted = 0 and is_auto_file != 1
|
|
|
+ select count(id) from u_archive_file where is_deleted = 0 and (is_auto_file is null or is_auto_file != 1)
|
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
|
and status = #{vo.isApprovalValue}
|
|
|
</if>
|
|
@@ -93,7 +93,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectArchiveFilePage" resultMap="archiveFileResultMap">
|
|
|
- select * from u_archive_file where is_deleted = 0 and is_auto_file != 1
|
|
|
+ select * from u_archive_file where is_deleted = 0 and (is_auto_file is null or is_auto_file != 1)
|
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
|
and status = #{vo.isApprovalValue}
|
|
|
</if>
|
|
@@ -126,7 +126,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectArchiveFilePageByBoxNameCount" resultType="java.lang.Integer">
|
|
|
- select count(id) from u_archive_file where is_deleted = 0 and is_auto_file != 1
|
|
|
+ select count(id) from u_archive_file where is_deleted = 0 and (is_auto_file is null or is_auto_file != 1)
|
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
|
and status = #{vo.isApprovalValue}
|
|
|
</if>
|
|
@@ -168,7 +168,7 @@
|
|
|
order by box_number,sort,create_time DESC
|
|
|
</select>
|
|
|
<select id="selectArchiveFilePageByBoxName" resultMap="archiveFileResultMap">
|
|
|
- select * from u_archive_file where is_deleted = 0 and is_auto_file != 1
|
|
|
+ select * from u_archive_file where is_deleted = 0 and (is_auto_file is null or is_auto_file != 1)
|
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
|
and status = #{vo.isApprovalValue}
|
|
|
</if>
|