|
@@ -177,7 +177,7 @@
|
|
|
FROM sms_scene a
|
|
|
<include refid="deviceJoins"/>
|
|
|
<where>
|
|
|
- a.status=1
|
|
|
+ a.status=1 and a.parent_scene_id=0
|
|
|
<if test="scene.tenantId != null and scene.tenantId != ''">and a.tenant_id = #{scene.tenantId}</if>
|
|
|
<if test="scene.parentSceneId != null ">and a.parent_scene_id = #{scene.parentSceneId}</if>
|
|
|
<if test="scene.sceneName != null and scene.sceneName != ''">
|