@@ -230,7 +230,7 @@
and b.id not in (
select d.ATTRIBUTE_ID
from sms_device_parm d
- where d.`STATUS` =1 and d.scene_id in
+ where d.`STATUS` =1 and d.DEVICE_ID = #{info.deviceId} and d.scene_id in
<foreach collection="info.sceneIds" item="dramaId" open="(" close=")" separator=",">
#{dramaId}
</foreach>