Commit 661b0c4b authored by chenzhao's avatar chenzhao

修改bug

parent c603b347
...@@ -49,6 +49,11 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> { ...@@ -49,6 +49,11 @@ public interface AlertCalledMapper extends BaseMapper<AlertCalled> {
String data, String data,
String lift); String lift);
int selectAllCount(Integer alertStatus,
String alertTypeCode ,
String alertSourceCode,
String startTime,
String endTime);
Integer AlertCalledcount(@Param("alertStatus")int alertStatus); Integer AlertCalledcount(@Param("alertStatus")int alertStatus);
......
...@@ -111,8 +111,7 @@ ...@@ -111,8 +111,7 @@
a.rescue_grid, a.rescue_grid,
a.coordinate_x, a.coordinate_x,
a.coordinate_y, a.coordinate_y,
a.response_level, a.response_level
COUNT (*) AS total
FROM FROM
jc_alert_called a jc_alert_called a
<where> <where>
...@@ -149,11 +148,11 @@ ...@@ -149,11 +148,11 @@
<select id="selectAllCount" resultType="int"> <select id="selectAllCount" resultType="int">
SELECT SELECT
COUNT (*) COUNT(*)
FROM FROM
jc_alert_called a jc_alert_called
<where> <where>
a.is_delete = 0 is_delete = 0
<if test="alertStatus!= null "> <if test="alertStatus!= null ">
and alert_status = #{alertStatus} and alert_status = #{alertStatus}
</if> </if>
......
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