|
@@ -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);
|