|
@@ -84,6 +84,9 @@
|
|
<when test="vo.isArchive != null and vo.isArchive != ''">
|
|
<when test="vo.isArchive != null and vo.isArchive != ''">
|
|
and is_auto_file = #{vo.isArchive}
|
|
and is_auto_file = #{vo.isArchive}
|
|
</when>
|
|
</when>
|
|
|
|
+ <when test="vo.archiveId != null and vo.archiveId != ''">
|
|
|
|
+ and 1=1
|
|
|
|
+ </when>
|
|
<otherwise>
|
|
<otherwise>
|
|
and (is_auto_file is null or is_auto_file != 1)
|
|
and (is_auto_file is null or is_auto_file != 1)
|
|
</otherwise>
|
|
</otherwise>
|
|
@@ -124,6 +127,9 @@
|
|
<when test="vo.isArchive != null and vo.isArchive != ''">
|
|
<when test="vo.isArchive != null and vo.isArchive != ''">
|
|
and is_auto_file = #{vo.isArchive}
|
|
and is_auto_file = #{vo.isArchive}
|
|
</when>
|
|
</when>
|
|
|
|
+ <when test="vo.archiveId != null and vo.archiveId != ''">
|
|
|
|
+ and 1=1
|
|
|
|
+ </when>
|
|
<otherwise>
|
|
<otherwise>
|
|
and (is_auto_file is null or is_auto_file != 1)
|
|
and (is_auto_file is null or is_auto_file != 1)
|
|
</otherwise>
|
|
</otherwise>
|
|
@@ -253,7 +259,7 @@
|
|
|
|
|
|
<select id="selectBoxNameAndBoxNumber" resultType="java.util.Map">
|
|
<select id="selectBoxNameAndBoxNumber" resultType="java.util.Map">
|
|
select box_name as boxName,box_number as boxNumber,group_concat(DISTINCT id ORDER BY id ASC SEPARATOR ',') as ids
|
|
select box_name as boxName,box_number as boxNumber,group_concat(DISTINCT id ORDER BY id ASC SEPARATOR ',') as ids
|
|
- from u_archive_file where node_id = #{nodeId} and box_number is not null
|
|
|
|
|
|
+ from u_archive_file where node_id = #{nodeId} and (box_number is not null or box_number != '')
|
|
group by box_name order by box_number asc
|
|
group by box_name order by box_number asc
|
|
</select>
|
|
</select>
|
|
|
|
|