|
|
@ -178,12 +178,6 @@ public class RealMonitorServiceImpl implements IRealMonitorService { |
|
|
|
List<String> objects = redisClient.getBatchRealDataByRealId(stationReal.getStation(),realIds); |
|
|
|
List<String> objects = redisClient.getBatchRealDataByRealId(stationReal.getStation(),realIds); |
|
|
|
for(int i = 0; i < realIds.size() ;i++){ |
|
|
|
for(int i = 0; i < realIds.size() ;i++){ |
|
|
|
if(ObjectUtil.isEmpty(objects.get(i))){ |
|
|
|
if(ObjectUtil.isEmpty(objects.get(i))){ |
|
|
|
Map<String,String> attribute = new ConcurrentHashMap<>(); |
|
|
|
|
|
|
|
attribute.put("realId",realIds.get(i)); |
|
|
|
|
|
|
|
attribute.put("value","0"); |
|
|
|
|
|
|
|
attribute.put("time",DateUtil.format(new Date(),"yyyy-MM-dd HH:mm:ss.s")); |
|
|
|
|
|
|
|
valueMap.put(realIdArr[i],attribute.get("value")); |
|
|
|
|
|
|
|
keyMap.put(realIdArr[i],attribute); |
|
|
|
|
|
|
|
log.error(realIds.get(i) + "is null"); |
|
|
|
log.error(realIds.get(i) + "is null"); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
Map<String,String> attribute = (Map<String, String>) JSONObject.parse(objects.get(i)); |
|
|
|
Map<String,String> attribute = (Map<String, String>) JSONObject.parse(objects.get(i)); |
|
|
|