|
@@ -100,7 +100,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectArchiveFilePage" resultMap="archiveFileResultMap">
|
|
|
- select * from u_archive_file where is_deleted = 0 and (is_auto_file is null or is_auto_file != 1)
|
|
|
+ select * from u_archive_file where is_deleted = 0
|
|
|
<if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
|
|
|
and status = #{vo.isApprovalValue}
|
|
|
</if>
|
|
@@ -113,9 +113,17 @@
|
|
|
<if test="vo.contractId != null and vo.contractId != ''">
|
|
|
and contract_id = #{vo.contractId}
|
|
|
</if>
|
|
|
- <if test="vo.archive_id != null and vo.archive_id != ''">
|
|
|
- and archive_id = #{vo.archive_id}
|
|
|
+ <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 != ''">
|
|
|
and node_id in
|
|
|
<foreach collection="vo.nodeIdArray" item="nodeId" open="(" separator="," close=")">
|