Pārlūkot izejas kodu

修改管网压力排名设备名字

lihui007 4 gadi atpakaļ
vecāks
revīzija
17de0dd815

+ 1 - 0
sms_water/src/main/java/com/huaxu/service/impl/RankingServiceImpl.java

@@ -50,6 +50,7 @@ public class RankingServiceImpl implements RankingService {
             if (sceneDeviceDto.getAttributeId() == null) {
                 continue;
             }
+            // 根据设备code,从redis获取设备的数据
             cacheKey = String.format(SMS_WATER_CACHE_KEY, sceneDeviceDto.getDeviceCode());
             byte[] bytes = redisUtil.get(cacheKey.getBytes());
             if(bytes == null || bytes.length == 0) {