Commit bdefb497 authored by tangwei's avatar tangwei

修改bug

parent 99e8e9e9
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
ELSE '' END responseLevelCode ELSE '' END responseLevelCode
FROM jc_alert_called a FROM jc_alert_called a
where a.is_delete=0 where a.is_delete=0
AND a.coordinate_x IS NOT NULL <!--AND a.coordinate_x IS NOT NULL
AND a.coordinate_y IS NOT NULL AND a.coordinate_y IS NOT NULL-->
<if test='par.status==0'> <if test='par.status==0'>
and a.alert_status =0 and a.alert_status =0
</if> </if>
...@@ -79,10 +79,10 @@ ...@@ -79,10 +79,10 @@
<if test='pageNum!=null and pageSize !=null'> <if test='pageNum!=null and pageSize !=null'>
limit #{pageNum},#{pageSize} limit #{pageNum},#{pageSize}
</if> </if>
</select> </select>
<select id="alertCalledListByAlertStatusCount" resultType="Integer"> <select id="alertCalledListByAlertStatusCount" resultType="Integer">
SELECT SELECT
COUNT(*) COUNT(*)
FROM jc_alert_called a FROM jc_alert_called a
...@@ -105,10 +105,10 @@ ...@@ -105,10 +105,10 @@
and a.call_time &gt;= (NOW() - interval 24 hour) and a.call_time &gt;= (NOW() - interval 24 hour)
</if> </if>
</select> </select>
<select id="selectAllPage" resultType="com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled"> <select id="selectAllPage" resultType="com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled">
SELECT SELECT
a.sequence_nbr, a.sequence_nbr,
a.alert_status, a.alert_status,
...@@ -173,9 +173,9 @@ ...@@ -173,9 +173,9 @@
order by a.call_time DESC limit #{current},#{size} order by a.call_time DESC limit #{current},#{size}
</if> </if>
</where> </where>
</select> </select>
<select id="selectAllCount" resultType="int"> <select id="selectAllCount" resultType="int">
SELECT SELECT
count(b.num) count(b.num)
FROM FROM
...@@ -207,10 +207,10 @@ ...@@ -207,10 +207,10 @@
GROUP BY a.sequence_nbr GROUP BY a.sequence_nbr
</if> </if>
</where>) b </where>) b
</select> </select>
<select id="AlertCalledcountTime" resultType="Integer"> <select id="AlertCalledcountTime" resultType="Integer">
select COUNT(*) from jc_alert_called where is_delete=0 select COUNT(*) from jc_alert_called where is_delete=0
...@@ -227,10 +227,10 @@ ...@@ -227,10 +227,10 @@
and TO_DAYS( NOW( ) ) - TO_DAYS( call_time) = 1 and TO_DAYS( NOW( ) ) - TO_DAYS( call_time) = 1
</if> </if>
</select> </select>
<select id="getTodayAlertCalled" resultType="com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledTodyDto"> <select id="getTodayAlertCalled" resultType="com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledTodyDto">
select jc_alert_called.alert_type alarmType, select jc_alert_called.alert_type alarmType,
jc_alert_called.address, jc_alert_called.address,
...@@ -240,10 +240,10 @@ ...@@ -240,10 +240,10 @@
and to_days(call_time) = to_days(now()) and to_days(call_time) = to_days(now())
ORDER BY call_time DESC ORDER BY call_time DESC
</select> </select>
<!--统计未结束的警情数量--> <!--统计未结束的警情数量-->
<select id="AlertCalledcount" resultType="Integer"> <select id="AlertCalledcount" resultType="Integer">
......
...@@ -629,7 +629,7 @@ public class CommandController extends BaseController { ...@@ -629,7 +629,7 @@ public class CommandController extends BaseController {
String time = DateUtil.formatDate(alertCalledZhDto.getCallTime(), "yyyy-MM-dd HH:mm:ss"); String time = DateUtil.formatDate(alertCalledZhDto.getCallTime(), "yyyy-MM-dd HH:mm:ss");
st.append("【").append(alertCalledZhDto.getAlertType()).append("】").append(" ").append(time).append(" ").append(alertCalledZhDto.getAddress()); st.append("【").append(alertCalledZhDto.getAlertType()).append("】").append(" ").append(time).append(" ").append(alertCalledZhDto.getAddress()!=null?alertCalledZhDto.getAddress():"");
SeismometeorologyDto sto = new SeismometeorologyDto(alertCalledZhDto.getSequenceNbr(), "1", "警情通知", null, alertCalledZhDto.getCallTime(), null, st.toString()); SeismometeorologyDto sto = new SeismometeorologyDto(alertCalledZhDto.getSequenceNbr(), "1", "警情通知", null, alertCalledZhDto.getCallTime(), null, st.toString());
li.add(sto); li.add(sto);
......
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