@@ -83,7 +83,7 @@
from sms_device_parm p
inner join sms_device_attribute b on p.ATTRIBUTE_ID=b.id and b.`STATUS`=1
inner join sms_device a on a.id=p.DEVICE_ID
- where p.IS_ARTWORK=1 and p.scene_id = #{sceneId} and p.`STATUS`=1
+ where p.IS_ARTWORK=1 and (p.scene_id = #{sceneId} or p.parent_scene_id = #{sceneId}) and p.`STATUS`=1
</select>
<select id="selectByDeviceIdForGis" resultType="com.huaxu.entity.DeviceParmEntity">
select p.ID as "id"