wangyangyang 4 роки тому
батько
коміт
d4fd2ee300
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      sms_water/src/main/resources/mapper/SceneMapper.xml

+ 1 - 1
sms_water/src/main/resources/mapper/SceneMapper.xml

@@ -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 != ''">