|
@@ -48,6 +48,9 @@
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="bgqx != null and bgqx != ''">
|
|
|
|
|
+ and a.bgqx=#{bgqx}
|
|
|
|
|
+ </if>
|
|
|
) AS archive_count
|
|
) AS archive_count
|
|
|
, (
|
|
, (
|
|
|
SELECT count(af.id)
|
|
SELECT count(af.id)
|
|
@@ -62,15 +65,15 @@
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="bgqx != null and bgqx != ''">
|
|
|
|
|
+ and a.bgqx=#{bgqx}
|
|
|
|
|
+ </if>
|
|
|
) AS file_count
|
|
) AS file_count
|
|
|
FROM tab_archives a1
|
|
FROM tab_archives a1
|
|
|
<where>
|
|
<where>
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
AND a1.gdnd BETWEEN #{startTime} AND #{endTime}
|
|
AND a1.gdnd BETWEEN #{startTime} AND #{endTime}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="bgqx != null and bgqx != ''">
|
|
|
|
|
- and a1.bgqx=#{bgqx}
|
|
|
|
|
- </if>
|
|
|
|
|
</where>
|
|
</where>
|
|
|
GROUP BY a1.gdnd
|
|
GROUP BY a1.gdnd
|
|
|
</select>
|
|
</select>
|