|  |  | 
 |  |  | import com.moral.api.service.DeviceService; | 
 |  |  | import com.moral.api.service.HistorySecondUavService; | 
 |  |  | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 
 |  |  | import com.moral.api.service.SpecialDeviceService; | 
 |  |  | import com.moral.constant.Constants; | 
 |  |  | import com.moral.constant.RedisConstants; | 
 |  |  | import com.moral.util.DateUtils; | 
 |  |  | 
 |  |  |     private HistorySecondUavMapper historySecondUavMapper; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private DeviceService deviceService; | 
 |  |  |     private SpecialDeviceService specialDeviceService; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private RedisTemplate redisTemplate; | 
 |  |  | 
 |  |  |                 }).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); | 
 |  |  |  | 
 |  |  |         //数据校准 | 
 |  |  |         data = deviceService.adjustSpecialDeviceData(data); | 
 |  |  |         data = specialDeviceService.adjustSpecialDeviceData(data); | 
 |  |  |  | 
 |  |  |         HistorySecondUav historySecondUav = new HistorySecondUav(); | 
 |  |  |         historySecondUav.setMac(mac); |