|
|
|
@ -28,11 +28,12 @@ |
|
|
|
|
|
|
|
<select id="getAlarmTmplIdsByDeviceId" resultType="java.lang.String"> |
|
|
|
select |
|
|
|
GROUP_CONCAT(device_alert_template_id) |
|
|
|
GROUP_CONCAT(tmpl.device_alert_template_id) |
|
|
|
from |
|
|
|
device_alert_template_bind tmpl |
|
|
|
inner join device_info dinfo on dinfo.id = tmpl.device_info_id |
|
|
|
where dinfo.device_id = #{deviceId} |
|
|
|
inner join device_alert_template dtmpl on dtmpl.id = tmpl.device_alert_template_id |
|
|
|
where dinfo.device_id = #{deviceId} and dinfo.flag != 1 and dtmpl.flag != 1 |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|