Explorar el Código

遵义新区同步取消修改限制 PengDi@2021/5/20

pengdi@zoniot.com hace 3 años
padre
commit
ff12668ab7

+ 6 - 2
smart-city-platform/src/main/java/com/bz/smart_city/service/impl/ZunYiNewRegionSyncServiceImpl.java

@@ -102,7 +102,11 @@ public class ZunYiNewRegionSyncServiceImpl implements SyncWaterMeterDataService
                         mpd.setSyncData(meterLastReadRecord.getReadData());
                         mpd.setGap(new BigDecimal(0));
                     } else {
-                        // 有抄表数据,则判断与上日推送数据是否存在-3内的波动差
+                        mpd.setRealData(record.getReadData());
+                        mpd.setRealDataDate(record.getReadTime());
+                        mpd.setSyncData(record.getReadData());
+                        mpd.setGap(new BigDecimal(0));
+                        /*// 有抄表数据,则判断与上日推送数据是否存在-3内的波动差
                         MeterPushData pushData = meterPushDataMapper.selectByPrimaryKey(device.getId(), yesterday);
                         // 若不存在推送数据,则直接推送今日抄表数据
                         if (pushData == null) {
@@ -134,7 +138,7 @@ public class ZunYiNewRegionSyncServiceImpl implements SyncWaterMeterDataService
                                     mpd.setGap(gap);
                                 }
                             }
-                        }
+                        }*/
                     }
                     // 将推送记录进行存储,并将数据进行推送
                     meterPushDataMapper.insert(mpd);