|
@@ -100,8 +100,12 @@ public class GeneralRabbitSyncService {
|
|
|
mpd.setSyncData(meterLastReadRecord.getReadData());
|
|
|
mpd.setGap(new BigDecimal(0));
|
|
|
} else {
|
|
|
+ mpd.setRealData(record.getReadData());
|
|
|
+ mpd.setRealDataDate(record.getReadTime());
|
|
|
+ mpd.setSyncData(record.getReadData());
|
|
|
+ mpd.setGap(new BigDecimal(0));
|
|
|
|
|
|
- MeterPushData pushData = meterPushDataMapper.selectByPrimaryKey(device.getId(), yesterday);
|
|
|
+
|
|
|
|
|
|
if (pushData == null) {
|
|
|
mpd.setRealData(record.getReadData());
|
|
@@ -132,7 +136,7 @@ public class GeneralRabbitSyncService {
|
|
|
mpd.setGap(gap);
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
meterPushDataMapper.insert(mpd);
|