Ver código fonte

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

oppadmin 4 anos atrás
pai
commit
a0ff040578

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