Commit 12da5244 authored by chenhao's avatar chenhao

Merge branch 'chenhao' into developer

parents 6970d645 6393d661
...@@ -114,6 +114,7 @@ ...@@ -114,6 +114,7 @@
FROM FROM
jc_alert_called a jc_alert_called a
<where> <where>
1=1
<if test="alertStatus!= null "> <if test="alertStatus!= null ">
and alert_status = #{alertStatus} and alert_status = #{alertStatus}
</if> </if>
...@@ -126,16 +127,16 @@ ...@@ -126,16 +127,16 @@
<if test="alertSourceCode!= null "> <if test="alertSourceCode!= null ">
and alert_source_code = #{alertSourceCode} and alert_source_code = #{alertSourceCode}
</if> </if>
<if test="data != null and lift == 'ascend'">
order by #{data} ASC limit #{current},#{size}
</if>
<if test="data != null and lift == 'descend'">
order by #{data} DESC limit #{current},#{size}
</if>
<if test="data == null ">
order by call_time DESC limit #{current},#{size}
</if>
</where> </where>
<if test="data != null and lift == 'ascend'">
order by #{data} ASC limit #{current},#{size}
</if>
<if test="data != null and lift == 'descend'">
order by #{data} DESC limit #{current},#{size}
</if>
<if test="data == null ">
order by call_time DESC limit #{current},#{size}
</if>
</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