瀏覽代碼

动环诊断分页查询bug处理

jingyuanchao 1 年之前
父節點
當前提交
66ff49be62
共有 1 個文件被更改,包括 1 次插入1 次删除
  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">