|
@@ -93,6 +93,16 @@
|
|
|
<if test="vo.sourceType != null and vo.sourceType != ''">
|
|
|
and u.source_type = #{vo.sourceType}
|
|
|
</if>
|
|
|
+ <if test="vo.isArchive != null and vo.isArchive != ''">
|
|
|
+ <choose>
|
|
|
+ <when test="vo.isArchive == '1'">
|
|
|
+ AND (u.is_archive = #{vo.isArchive} OR u.is_archive IS NULL)
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ AND u.is_archive = #{vo.isArchive}
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ </if>
|
|
|
<if test="vo.rectification == null and vo.archiveId == null">
|
|
|
and (u.is_auto_file is null or u.is_auto_file != 1)
|
|
|
</if>
|
|
@@ -166,7 +176,16 @@
|
|
|
<if test="vo.sourceType != null and vo.sourceType != ''">
|
|
|
and u.source_type = #{vo.sourceType}
|
|
|
</if>
|
|
|
-
|
|
|
+ <if test="vo.isArchive != null and vo.isArchive != ''">
|
|
|
+ <choose>
|
|
|
+ <when test="vo.isArchive == '1'">
|
|
|
+ AND (u.is_archive = #{vo.isArchive} OR u.is_archive IS NULL)
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ AND u.is_archive = #{vo.isArchive}
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ </if>
|
|
|
<if test="vo.rectification == null and vo.archiveId == null">
|
|
|
and (u.is_auto_file is null or u.is_auto_file != 1)
|
|
|
</if>
|