增加补传推送第三方功能

This commit is contained in:
weidong 2023-12-12 10:19:24 +08:00
parent 85c3778385
commit 5a23385a82

View File

@ -211,8 +211,8 @@ public class GNSSDeviceLocationRecordServiceImpl implements GNSSDeviceLocationRe
LocalDateTime beforTime = afterTime.plusHours(groupCalc.getFilter_hour()); LocalDateTime beforTime = afterTime.plusHours(groupCalc.getFilter_hour());
QueryWrapper<GnssCalcData> query = new QueryWrapper<>(); QueryWrapper<GnssCalcData> query = new QueryWrapper<>();
query.eq("deviceid", deviceId); query.eq("deviceid", deviceId);
query.ge("createtime", beforTime.format(dateFormatter)); query.le("createtime", beforTime.format(dateFormatter));
query.le("createtime", afterTime.format(dateFormatter)); query.ge("createtime", afterTime.format(dateFormatter));
List<GnssCalcData> calcDataListToUpdate = repository.selectList(query); List<GnssCalcData> calcDataListToUpdate = repository.selectList(query);
for(GnssCalcData calcData:calcDataListToUpdate){ for(GnssCalcData calcData:calcDataListToUpdate){