Pārlūkot izejas kodu

处理同种类型的设备参数问题

wangyangyang 4 gadi atpakaļ
vecāks
revīzija
cbf240e919

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

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