浏览代码

设备同步条件:增加水表已安装判断

oppadmin 4 年之前
父节点
当前提交
a0ff040578
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      smart-city-platform/src/main/resources/mapper/DeviceMapper.xml

+ 1 - 1
smart-city-platform/src/main/resources/mapper/DeviceMapper.xml

@@ -172,7 +172,7 @@
         new_meter_start,
         device_model,
         metercode
-        from sc_device where status=1 and metercode is not null
+        from sc_device where status=1 and metercode is not null and curr_status = 1
         <if test="siteId != null"> and site_id = #{siteId,jdbcType=INTEGER}</if>
         <if test="customerId != null"> and customer_id = #{customerId,jdbcType=INTEGER}</if>
     </select>