|
@@ -712,7 +712,6 @@
|
|
left join sms_device d on ad.DEVICE_ID =d.ID
|
|
left join sms_device d on ad.DEVICE_ID =d.ID
|
|
left join sms_device_attribute da on ad.ATTRIBUTE_ID =da.id
|
|
left join sms_device_attribute da on ad.ATTRIBUTE_ID =da.id
|
|
left join sms_alarm_type ast on ast.id=ad.ALARM_ID
|
|
left join sms_alarm_type ast on ast.id=ad.ALARM_ID
|
|
- left join sms_alarm_rule ar on ar.alarm_type_id=ast.id
|
|
|
|
where ad.OP_STATE = 1 and ad.STATE=1 and ad.is_send_message = 0 and d.status = 1 and d.ENABLE_STATE = 2
|
|
where ad.OP_STATE = 1 and ad.STATE=1 and ad.is_send_message = 0 and d.status = 1 and d.ENABLE_STATE = 2
|
|
and timestampdiff(MINUTE,ad.ALARM_START_TIME,now()) > 10
|
|
and timestampdiff(MINUTE,ad.ALARM_START_TIME,now()) > 10
|
|
</select>
|
|
</select>
|