소스 검색

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

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>