|
@@ -66,7 +66,7 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<select id="selectArchiveFileCount" resultType="java.lang.Integer">
|
|
<select id="selectArchiveFileCount" resultType="java.lang.Integer">
|
|
- select count(id) from u_archive_file where is_deleted = 0 and (is_auto_file is null or is_auto_file != 1)
|
|
|
|
|
|
+ select count(id) from u_archive_file where is_deleted = 0
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
and status = #{vo.isApprovalValue}
|
|
and status = #{vo.isApprovalValue}
|
|
</if>
|
|
</if>
|
|
@@ -79,7 +79,17 @@
|
|
<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.archiveId != null and vo.archiveId != ''">
|
|
|
|
+ and archive_id = #{vo.archiveId}
|
|
|
|
+ </if>
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="vo.isArchive != null and vo.isArchive != ''">
|
|
|
|
+ and is_auto_file = #{vo.isArchive}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ and (is_auto_file is null or is_auto_file != 1)
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
<if test="vo.nodeIds != null and vo.nodeIds != ''">
|
|
<if test="vo.nodeIds != null and vo.nodeIds != ''">
|
|
and node_id in
|
|
and node_id in
|
|
<foreach collection="vo.nodeIdArray" item="nodeId" open="(" separator="," close=")">
|
|
<foreach collection="vo.nodeIdArray" item="nodeId" open="(" separator="," close=")">
|