|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public Map<String, Object> adjustSpecialDeviceData(Map<String, Object> deviceData) { | 
|---|
|  |  |  | String mac = deviceData.remove("mac").toString(); | 
|---|
|  |  |  | //        String mac = deviceData.remove("mac").toString(); | 
|---|
|  |  |  | String mac = deviceData.get("mac").toString(); | 
|---|
|  |  |  | //从redis获取校准公式 | 
|---|
|  |  |  | Map<String, Object> adjustFormula = redisTemplate.opsForHash().entries(RedisConstants.ADJUST + "_" + mac); | 
|---|
|  |  |  | if (!org.springframework.util.ObjectUtils.isEmpty(adjustFormula)) { | 
|---|
|  |  |  | 
|---|
|  |  |  | if (null != govMpInfo && null != govMpInfo.get("guid")) { | 
|---|
|  |  |  | aqiMap = (Map<String, Object>) redisTemplate.opsForHash().get(RedisConstants.AQI_DATA, govMpInfo.get("guid").toString()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return adjustDataUtils.adjust(deviceData, adjustFormula, org.springframework.util.ObjectUtils.isEmpty(aqiMap) ? null : aqiMap); | 
|---|
|  |  |  | return adjustDataUtils.adjust(deviceData, adjustFormula, org.springframework.util.ObjectUtils.isEmpty(aqiMap) ? null : aqiMap,"0"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | deviceData.remove("DataTime"); | 
|---|
|  |  |  | return deviceData; | 
|---|