@@ -253,7 +253,7 @@
sat.enabled
from sms_alarm_type sat
left join sms_device_type sp on (sp.id = sat.product_id)
- left join sms_device sd on (sp.id = sat.device_id)
+ left join sms_device sd on (sd.id = sat.device_id)
where
1=1
<if test="dto.alarmName !=null and dto.alarmName != ''" >