Explorar o código

Merge remote-tracking branch 'origin/master'

wangbo %!s(int64=4) %!d(string=hai) anos
pai
achega
8e724e5d1e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sms_water/src/main/resources/mapper/MonitorInfoMapper.xml

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

@@ -49,7 +49,7 @@
      </sql>
     <sql id="leftJoins">
           LEFT JOIN sms_device b on a.DEVICE_ID=b.ID
-          left join sms_device_parm d on d.DEVICE_ID=a.DEVICE_ID and d.ATTRIBUTE_ID = a.ATTRIBUTE_ID and  d.`STATUS`=1
+          left join sms_device_parm d on a.SCENE_ID=d.SCENE_ID and d.DEVICE_ID=a.DEVICE_ID and d.ATTRIBUTE_ID = a.ATTRIBUTE_ID and  d.`STATUS`=1
     </sql>
     <!--  根据主键获取实体   -->
     <select id="findMonitorInfoById" resultType="com.huaxu.entity.MonitorInfoEntity">