逻辑更新:手机定位不再记录到定位日志中
This commit is contained in:
parent
1753133e4f
commit
7fff4fce72
|
@ -557,22 +557,6 @@ public class OrderServiceImpl implements OrderService {
|
|||
if (rows != 1) {
|
||||
log.error("通过手机定位修改设备定位失败deviceMac={}", device.getMac());
|
||||
}
|
||||
|
||||
// 直接保存手机定位日志
|
||||
DeviceVO vo = new DeviceVO();
|
||||
BeanUtils.copyProperties(device, vo);
|
||||
vo.setLongitude(lon);
|
||||
vo.setLatitude(lat);
|
||||
vo.setLocationType(DeviceLocationType.PHONE.getCode());
|
||||
vo.setLastLocationTime(LocalDateTime.now());
|
||||
LocationLog locationLog = locationLogConverter.toPo(vo);
|
||||
if (locationLog == null) {
|
||||
log.error("通过手机定位转换定位日志失败: {}", device.getMac());
|
||||
return;
|
||||
}
|
||||
|
||||
// 暂存到Redis缓存
|
||||
redisCache.rightPush(CacheConstants.LOCATION_LOG_QUEUE, locationLog);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user