Bladeren bron

动环诊断分页查询bug处理

jingyuanchao 1 jaar geleden
bovenliggende
commit
66ff49be62
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      soc-modules/soc-modules-iot/src/main/resources/mapper/IotSensorMapper.xml

+ 1 - 1
soc-modules/soc-modules-iot/src/main/resources/mapper/IotSensorMapper.xml

@@ -17,7 +17,7 @@
         <if test="request.state!= null">
             and s.state = #{request.state}
         </if>
-        <if test="request.deviceType!= null">
+        <if test="request.deviceType!= null and request.deviceType!= ''">
             and s.device_type = #{request.deviceType}
         </if>
         <if test="request.startTime!= null">