Commit eae3956e authored by chenzhao's avatar chenzhao

修改bug

parent 29ac9ad7
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
and a.call_time between #{startTime} and #{endTime} and a.call_time between #{startTime} and #{endTime}
</if> </if>
<if test="alertTypeCode!= null and alertTypeCode!= '' "> <if test="alertTypeCode!= null and alertTypeCode!= '' ">
and a.alarm_type_code = #{alertTypeCode} and a.alert_type_code = #{alertTypeCode}
</if> </if>
<if test="alertSourceCode!= null "> <if test="alertSourceCode!= null ">
and a.alert_source_code = #{alertSourceCode} and a.alert_source_code = #{alertSourceCode}
...@@ -176,11 +176,8 @@ ...@@ -176,11 +176,8 @@
</select> </select>
<select id="selectAllCount" resultType="int"> <select id="selectAllCount" resultType="int">
SELECT SELECT
count(b.num) count(a.sequence_nbr) as num
FROM
(SELECT
count(distinct a.sequence_nbr) as num
FROM FROM
jc_alert_called a jc_alert_called a
<if test="isFatherAlert!= null and isFatherAlert == 'true' "> <if test="isFatherAlert!= null and isFatherAlert == 'true' ">
...@@ -200,13 +197,13 @@ ...@@ -200,13 +197,13 @@
and a.alert_source_code = #{alertSourceCode} and a.alert_source_code = #{alertSourceCode}
</if> </if>
<if test="systemSourceCode!= null "> <if test="systemSourceCode!= null ">
and a.system_source_code = #{systemSourceCode} and a.system_source_code in (${systemSourceCode})
</if> </if>
<if test="isFatherAlert!= null and isFatherAlert == 'true' "> <if test="isFatherAlert!= null and isFatherAlert == 'true' ">
and j.alert_called_id = a.sequence_nbr and j.alert_called_id = a.sequence_nbr
GROUP BY a.sequence_nbr GROUP BY a.sequence_nbr
</if> </if>
</where>) b </where>
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment