Explorar o código

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

oppadmin %!s(int64=4) %!d(string=hai) anos
pai
achega
a0ff040578

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

@@ -172,7 +172,7 @@
         new_meter_start,
         new_meter_start,
         device_model,
         device_model,
         metercode
         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="siteId != null"> and site_id = #{siteId,jdbcType=INTEGER}</if>
         <if test="customerId != null"> and customer_id = #{customerId,jdbcType=INTEGER}</if>
         <if test="customerId != null"> and customer_id = #{customerId,jdbcType=INTEGER}</if>
     </select>
     </select>