Commit 0970fef0 authored by zhangsen's avatar zhangsen

改bug

parent ac110d27
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
<if test="stationCode != null and stationCode != ''"> <if test="stationCode != null and stationCode != ''">
and s.station_code = #{stationCode} and s.station_code = #{stationCode}
</if> </if>
and s.signal_report_date = t.date and s.confirm_date like concat(t.date,'%')
</where> </where>
) as alarmNums, ) as alarmNums,
date date
......
...@@ -56,8 +56,8 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -56,8 +56,8 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
"insert".equals(receiveData.getActive()) && ObjectUtil.isNotEmpty(receiveData.getAlarmEventLog())) { "insert".equals(receiveData.getActive()) && ObjectUtil.isNotEmpty(receiveData.getAlarmEventLog())) {
AlarmEventLogVO alarmEventLog = receiveData.getAlarmEventLog(); AlarmEventLogVO alarmEventLog = receiveData.getAlarmEventLog();
if (StrUtil.isNotEmpty(alarmEventLog.getObjcectType()) && "equip".equals(alarmEventLog.getObjcectType()) && if (StrUtil.isNotEmpty(alarmEventLog.getObjcectType()) && "equipment".equals(alarmEventLog.getObjcectType()) &&
StrUtil.isNotEmpty(alarmEventLog.getObjcectIndexType()) && "fireAlarm".equals(alarmEventLog.getObjcectIndexType())) { StrUtil.isNotEmpty(alarmEventLog.getObjcectIndexType()) && "FIREALARM".equals(alarmEventLog.getObjcectIndexType())) {
FireEquipmentSignalLog fireEquipmentSignalLog = new FireEquipmentSignalLog(); FireEquipmentSignalLog fireEquipmentSignalLog = new FireEquipmentSignalLog();
fireEquipmentSignalLog.setStationName(alarmEventLog.getBizOrgName()); fireEquipmentSignalLog.setStationName(alarmEventLog.getBizOrgName());
fireEquipmentSignalLog.setStationCode(alarmEventLog.getOrgCode()); fireEquipmentSignalLog.setStationCode(alarmEventLog.getOrgCode());
......
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