1、优化虚拟数据
This commit is contained in:
parent
3916b89920
commit
e8861d16e0
@ -111,6 +111,8 @@ public class AbnormalDeviceProcessor{
|
||||
QueryWrapper<GnssCalcData> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("deviceid",noDataDeviceId);
|
||||
queryWrapper.orderByDesc("createtime");
|
||||
queryWrapper.eq("enabled",true);
|
||||
queryWrapper.isNotNull("rpose");
|
||||
queryWrapper.last("limit 1");
|
||||
GnssCalcData offGnssCalcData = gnssDataMapper.selectOne(queryWrapper);
|
||||
if(offGnssCalcData==null) return;
|
||||
@ -130,9 +132,9 @@ public class AbnormalDeviceProcessor{
|
||||
locationRecord.setUpdatetime(LocalDateTime.now()); //通过这里可以区分补传记录
|
||||
|
||||
// 调用这个函数之前已判断是否为null
|
||||
locationRecord.setB562e(offGnssCalcData.getB562e()+(refGnssData1[0]+refGnssData2[0])/2); //mm
|
||||
locationRecord.setB562n(offGnssCalcData.getB562n()+(refGnssData1[1]+refGnssData2[1])/2);
|
||||
locationRecord.setB562d(offGnssCalcData.getB562d()+(refGnssData1[2]+refGnssData2[2])/2);
|
||||
locationRecord.setB562e(offGnssCalcData.getRpose()+(refGnssData1[0]+refGnssData2[0])/2); //mm
|
||||
locationRecord.setB562n(offGnssCalcData.getRposn()+(refGnssData1[1]+refGnssData2[1])/2);
|
||||
locationRecord.setB562d(offGnssCalcData.getRposd()+(refGnssData1[2]+refGnssData2[2])/2);
|
||||
|
||||
locationRecord.setPps(-1);//标记为虚拟数据
|
||||
filterService.calc(device, groupCalc, locationRecord, lastPoit);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user