Browse Source

查询场景参数

wangyangyang 3 years ago
parent
commit
3162bb2671
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sms_water/src/main/resources/mapper/DeviceParmMapper.xml

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

@@ -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"